/app/helpers/url_helpers.rb

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

/app/helpers/url_helpers.rb

fugee ohu
how do i use this file?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c758e477-a699-4a7f-9654-c8efb92c108e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: /app/helpers/url_helpers.rb

Abhinay kumar
start writing method inside your url module.

module UrlHelper

  def url
      #......
  end
end

These methods then can be called from your view. we use helper method to reduce the noise in view files.

On Thursday, 8 March 2018 11:19:27 UTC+5:30, fugee ohu wrote:
how do i use this file?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab7d889c-3515-4bc1-ab3f-7d33d15bd651%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: /app/helpers/url_helpers.rb

André Orvalho
In reply to this post by fugee ohu
Dude you really need to read a book or learn how to start using google. You ask every single question of the most simple usage of the framework.

You can learn here: http://bit.ly/2tvfGTT

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/68d199af-3754-48e6-a4d1-a9bcdf761259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.