Skip to main content

All Questions

Filter by
Sorted by
Tagged with
3 votes
0 answers
50 views

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
1 vote
2 answers
78 views

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
  • 113
2 votes
1 answer
82 views

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
1 vote
1 answer
400 views

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
  • 113
5 votes
2 answers
1k views

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
  • 239
4 votes
2 answers
125 views

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
2 votes
1 answer
70 views

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