Hi again, It's time to put my dunce cap on...
I added this to the wrong file: public :default_url_options However, I still can't get the console to work. Thanks, Martin On Sat, Sep 5, 2009 at 8:02 PM, Martin Smith<[email protected]> wrote: > Hi Jimmy, > > I''ve been doing some more digging on rails, and i haven't actually > gotten anything to work. I keep getting the following error: > > Showing app/views/stuphs/new.html.erb where line #4 raised: > > Collection was modified; enumeration operation may not execute. > > Extracted source (around line #4): > > 1: <h1>New stuph</h1> > 2: > 3: <% form_for(@stuph) do |f| %> > 4: <%= f.error_messages %> > 5: > 6: <p> > 7: <%= f.submit 'Create' %> > > It's actually failing on the form_for(@stuff) line where @stuff is an > ActiveRecord class. > > The (snipped) full path is: > > mscorlib:0:in `ThrowInvalidOperationException' > mscorlib:0:in `MoveNext' > :0:in `inspect' > (eval):1:in `stuphs_path' > :0:in `inspect' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:116:in > `polymorphic_url' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/polymorphic_routes.rb:123:in > `polymorphic_path' > :0:in `inspect' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:298:in > `apply_form_for_options!' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/helpers/form_helper.rb:277:in > `form_for' > C:/temp/other-test/app/views/stuphs/new.html.erb:4:in > `_run_erb_app47views47stuphs47new46html46erb' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:34:in > `render' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:301:in > `with_template' > C:/temp/ironruby-0-9-0/lib/ironruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:30:in > `render' > ...... > > actually, i looked into the rails code, but i've been digging for a > couple hours now, and haven't gotten anywhere. > > Unfortunately, I don't seem to be able to get rails 2.3.2 working as: > igem install rails -v2.3.2 > > fails. > > I appreciate the help. > > Thanks, > Martin > > On Sat, Sep 5, 2009 at 4:53 PM, Jimmy > Schementi<[email protected]> wrote: >> Feel free to file a bug, but things should just work. I do remember this >> happening in a much older version, but I don't remember what caused it. Have >> you tried on the latest sources? >> >> I'll make sure the latest instructions on our website still work as expected >> too ... >> >> ~js >> ________________________________________ >> From: [email protected] >> [[email protected]] on behalf of Martin Smith >> [[email protected]] >> Sent: Saturday, September 05, 2009 3:53 PM >> To: [email protected] >> Subject: [Ironruby-core] Rails script\console >> >> Hello, >> >> When I run ir script\console for a rails app with ironruby-0-9-0, I >> get the message: >> >> Loading development environment (Rails 2.3.3) >> >> And then ir shuts down. Is this an issue with the console, or a rails >> 2.3.3 with ironruby issue? Should I file a bug? >> >> Thanks, >> Martin >> _______________________________________________ >> Ironruby-core mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > _______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
