[RUBY] In Redmine you can get the project with Project.find (<identifier>)

There are various expressions in redmine's Plugin Tutorial, but I personally think that find () should be used only for id.

Why can i do it?

Because it is overridden in the Redmine code as follows.


  def self.find(*args)
    if args.first && args.first.is_a?(String) && !args.first.match(/^\d*$/)
      project = find_by_identifier(*args)
      raise ActiveRecord::RecordNotFound, "Couldn't find Project with identifier=#{args.first}" if project.nil?

Recommended Posts

In Redmine you can get the project with Project.find (<identifier>)
With Tomcat you can use placeholders ($ {...}) in web.xml
When you get lost in the class name
Notify the build result with slack with CircleCI. You can do it in 5 minutes.
[Java] Get the file path in the folder with List
In Ruby you can define a method with any name
Until you build a project described in scala with Maven and execute it with the scala command.
With [AWS] CodeStar, you can build a Spring (Java) project running on Lambda in just 3 minutes! !!
Place in the middle with css
`SAXReader`: Get the xml file with the default namespace set in XPath format
[Rails] How to get the user information currently logged in with devise
If you have trouble with the character code problem in Myanmar (Burmese)
Get the value of enum saved in DB by Rails with attribute_before_type_cast
How to embed and display youtube videos in Rails (You can also get the URL you entered by editing)
Until you can use the H2 database in server mode with Dropwizard using Eclipse and connect with DB Viewer.
Get in touch with Eclipse MicroProfile Health
Fill the screen with buttons in TableLayout
How to get the date in java
[Java] Get the date with the LocalDateTime class
Solution when you get the error Webpacker :: Manifest :: MissingEntryError in Devise :: Sessions # new
How to get the ID of a user authenticated with Firebase in Swift
Get YouTube video information with Retrofit and keep it in the Android app.