All Questions
Tagged with url-routing ruby-on-rails
7 questions
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:
...
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 ...
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 ...
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?
...
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
...
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:
...
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:
...