Displaying 4 results from an estimated 4 matches for "stories_path".
2008 Dec 20
3
undefined method `stories_path'
Hi,
I recieve error "undefined method `stories_path'' for
#<ActionView::Base:0x995b4ac>" when going to the view via
site.com/stories/new
The model is setup correctly, I can retrieve data from the db fine. I
think it might be related to the helper but I have no idea where to
start. It seems to think its failing on the first line o...
2007 Dec 29
5
./script/story command
...e to
consider possibilities for getting this functionality into RSpec core.
WDYT?
--
Bryan Helmkamp
http://brynary.com -- My blog
-----------------------------------------------
#!/usr/bin/env ruby
class StoryCommand
ROOT_PATH = File.expand_path(File.dirname(__FILE__) + "/..")
STORIES_PATH = "#{ROOT_PATH}/stories/scenarios"
STEP_MATCHERS_PATH = "#{ROOT_PATH}/stories/steps"
HELPER_PATH = "#{ROOT_PATH}/stories/helper"
def self.run
self.new.run
end
def run
if ARGV.empty? && first_char = using_stdin?
setup_an...
2010 Jun 17
7
Why do rails calls a method when I'm calling a property?
...:conditions =>
conditions
end
def new
@story = Story.new
end
def create
#@story = Story.new(params[:story])
@story = @current_user.stories.build params[:story]
if @story.save
flash[:notice] = "La historia a sido agregada correctamente!"
redirect_to stories_path
else
render :action => ''new''
end
end
def show
@story = Story.find_by_id(params[:id])
end
end
#controller ends here
Here''s my view:
#View starts here
<h2>
<%= @story.name %>
</h2>
<h3>
<span id="vote_score...
2009 Sep 29
5
NoMethodError in Stories#show
I''m a Rails newbie and am working my way through Simply Rails 2 by
Patrick Lenz.
Have run into a problem on page 207 of the book; this is the error I
run into when I fire up my server and open up httpL//localhost:3000/
stories/new I have posted the error message and trace below.
Thanks in advance for your help.