Ruby on Rails Sunday, October 15, 2017

You can use something like this

get 'venue/:name:', to: 'venues#show'

class VenueController
  def show
    # render the view by checking params[:name]
  end
end

Check the above linked routing guide for more details

On Mon, Oct 16, 2017 at 12:58 AM, Hassan Schroeder <hassan.schroeder@gmail.com> wrote:
On Sun, Oct 15, 2017 at 10:49 AM, Ben Edwards <login@funkytwig.com> wrote:
> Great, thanks, almost there.  Mine is slightly different as its not based on
> CRUD, its a ruby view based on a SQL view.

Irrelevant. You can use any parameter and controller method names
you choose.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yCwEmH12Lc0yJqhuUR75P3chQMUMR%3DXRDb01Wmf_0h_8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards
Aboobacker MK

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAP3AYfaTspBec2F%3DatuXkVTit7zx3%3Dx0%2B1jc0sFm8ALRBrtTKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment