[Rails] Re: redirect_to with params for a nested resource?

2011-08-31 Thread Simon Welker
Thanks so far guys. Will try this. Currently I'm using a very raw string concatenation which just appends the page - and the id. forum_topic_path(@topic.forum, @topic) + ?page= + find_topic_page(@post) + #post- + @post.id it is. So well, I'd be glad if I could replace it with the nice and

[Rails] redirect_to with params for a nested resource?

2011-08-30 Thread Simon Welker
Hello out there! I am developing an app that includes a simple forum system, and am using a nested resource there: resources :forums do resources :topics end So I get URLs like /forums/3/topics/2. Now I, for sure, also got a Post model, controller, etc., and I want this controller to

[Rails] Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
Good day, people, I installed a fully working Ruby on Rails on my Debian Squeeze system today and am studying a tutorial about Ruby on Rails right now. It says that in the main folder of my app, I should type ruby script/generate controller Stories index Good, but that seems to be for older ruby

[Rails] Re: Problem with auto-generated controller and index

2011-03-13 Thread Simon Welker
have everything pre-done for me right now, although I think scaffold will get useful for me again. Thank you! :) On 13 Mrz., 11:56, Frederick Cheung frederick.che...@gmail.com wrote: On Mar 12, 11:25 pm, Simon Welker p0mmesg4...@googlemail.com wrote: Good day, people, I installed a fully