Displaying 2 results from an estimated 2 matches for "story_titl".
Did you mean:
story_title
2007 Dec 26
3
executing code after each step of a story
Hello,
how can I execute some code after each step of a story. Is there some
kind of listener documentated.
Thank you in advance,
Armin
2010 Sep 11
0
Rails 3 helper method not called
...9;ve
noticed that helper methods used for rewriting URL paths are not
called. Methods are defined in app/helpers/url_helper.rb:
module UrlHelper
def story_pah(story)
"/story/#{story.title}"
end
end
This method, when called inside of view instead of:
story/1
creates path
story/story_title.
I order to double check this I''ve create two new applications. One in
Rails 2 and the other in Rails 3. After that I created scaffold for
Story:
Rails 2: script/generate scaffold Story title:string body:string
Rails 3: rails g scaffold Story title:string body:string
Finally I created...