[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-28 Thread Ronald Fischer
mike2r wrote in post #1147433: > On Wednesday, May 28, 2014 2:55:59 AM UTC-4, Ruby-Forum.com User wrote: >> -- >> Posted via http://www.ruby-forum.com/. >> > > When you get to the point where you are going to use password > authentication, re-read the user authentication part of the tutorial. Than

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-28 Thread mike2r
On Wednesday, May 28, 2014 2:55:59 AM UTC-4, Ruby-Forum.com User wrote: > > Thank you for the suggestions. I went through the tutorial found on the > web (which was explaining the concepts using the example of making a > blog site), but could relate what I have learned, only to the concept of

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-27 Thread Ronald Fischer
Thank you for the suggestions. I went through the tutorial found on the web (which was explaining the concepts using the example of making a blog site), but could relate what I have learned, only to the concept of the idioms in my project, but not to the rest of my application. I now see that i

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-27 Thread mike2r
On Tuesday, May 27, 2014 2:36:53 AM UTC-4, Ruby-Forum.com User wrote: > > You did grasp the concept of my application amazingly well, only that > the only possible ways to "edit" a dict is to add and remove idioms > (would you see this as editing the dictionary, or as manipulating the > Idiom

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-26 Thread Ronald Fischer
You did grasp the concept of my application amazingly well, only that the only possible ways to "edit" a dict is to add and remove idioms (would you see this as editing the dictionary, or as manipulating the Idiom class?). The reason why I did not follow the CRUD way - and maybe this I was mis

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-26 Thread mike2r
On Sunday, May 25, 2014 1:40:40 PM UTC-4, Ruby-Forum.com User wrote: > > Thanks a lot for the detailed explanations. Two remarks for this: > > As for the naming, my application evolves a dictionary of foreign > language idioms, and the main purpose it to train the user in the usage > of these

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-25 Thread Ronald Fischer
Thanks a lot for the detailed explanations. Two remarks for this: As for the naming, my application evolves a dictionary of foreign language idioms, and the main purpose it to train the user in the usage of these idioms. From the perspective of the user, there are 3 types of "screens" (HTML pag

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-25 Thread mike2r
On Sunday, May 25, 2014 2:31:33 AM UTC-4, Ruby-Forum.com User wrote: > > mike2r wrote in post #1146887: > > I would use resources, as > > Scott > > suggests, but limit the actions that you really need such as: > > > > resources :dicts, only: [:show] > > Now in my case, the action has a "non

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-24 Thread Ronald Fischer
mike2r wrote in post #1146887: > I would use resources, as > Scott > suggests, but limit the actions that you really need such as: > > resources :dicts, only: [:show] Now in my case, the action has a "non-standard" name, i.e. ":manage". Can I use this too in the "only:" array, or should I instead

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-24 Thread Ronald Fischer
Евгений Шурмин wrote in post #1146886: > get 'dict/:id/manage', to: 'dict#manage' , as: :dict Could you please kindly explain, what the effect of the "as: :dict" is in this case? I understood that I need the "as:" parameter for those cases where I want to name the route differently, but in this

[Rails] Re: Beginner's routing question: Redirecting to a different controller

2014-05-23 Thread Евгений Шурмин
get 'dict/:id/manage', to: 'dict#manage' , as: :dict пятница, 23 мая 2014 г., 17:05:36 UTC+4 пользователь Ruby-Forum.com User написал: > > I have a problem passing control from one controller to the next. Here > are the details: > > I have a model 'Dict' with primary key :dictname. I have two