Skip to main content

All Questions

3votes
0answers
45views

Rails route structure for managing tags

I'm hoping someone could vet my route structure as I've really been struggling with getting something that feels right. Right now I have this nested resource structure: ...
Dyl's user avatar
  • 31
1vote
2answers
71views

URL Routing Application

In a Ruby on Rails application I want to have this routing: for URL www.example.com/reports go to controller documents and action ...
True Soft's user avatar
2votes
1answer
72views

Redirecting to the appropriate URL for some type of notification

I have a polymorphic notification model with action attribute. When user clicks on a notification he/she should be redirected to given page the notification refers to through notifiable. What is the ...
Szilard Magyar's user avatar
1vote
1answer
386views

Is dynamically generating routes from Model enum safe?

I am generating routes and responding to it dynamically by looking at the enum defined in the model. Is this safe and is there more proper method? ...
harinsa's user avatar
5votes
2answers
1kviews

Rails controller action methods corresponding to static web pages

One of my rails controllers is horribly overcrowded with a bunch of methods that link to static web pages. Controller ...
Johnson's user avatar
4votes
2answers
116views

Routes for reminders

I have a controller with just a few actions, not the whole 7 RESTful actions situation. Here's what I have so far for routing: ...
Jason Swett's user avatar
2votes
1answer
65views

Nested routes and proper place for a function?

I have a Rails app and in it I have two models, widget and votes. Votes are used to keep track of the desirability of a widget. In my models I have: ...
Mike's user avatar
  • 205

close