Displaying 2 results from an estimated 2 matches for "game_1".
2007 Oct 05
13
spec''ing view render partial collection, local variable not found
I''m trying to spec out a render partial collection but I get the following
error
2)
NoMethodError in ''/games/_game.rhtml should show game name''
undefined method `body'' for #<#<Class:0x316580c>:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`matches?''
2008 Apr 09
2
Ruby on Rails drop down help
...simple problem with ruby on rails. Using a basic
tutorial and scaffolding I have a form with lines like this:
<p><label for="user_game1">Game 1: <%= Game.find(''1'').game %></
label><br/>
<%= text_field ''user'', ''game_1'' %></p>
and I want to change it from a text field to a drop down menu with
three hardcoded values ("Home", "Away" and "Draw").
If someone could help me out that''d be great.
Thanks,
Craig
--~--~---------~--~----~------------~-------~--~----...