Giter Site home page Giter Site logo

Comments (11)

ryanb avatar ryanb commented on July 30, 2024

Could you post the full error message and stack trace?

from nested_form.

 avatar commented on July 30, 2024

SyntaxError in Profiles#edit

Showing /Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml where line #7 raised:

/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:7: syntax error, unexpected ')'
));}\n<div class='span-22 push-1'>\n  #{
 ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:7: syntax error, unexpected keyword_class, expecting keyword_do or '{' or '('
));}\n<div class='span-22 push-1'>\n  #{
                ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:7: syntax error, unexpected $undefined
));}\n<div class='span-22 push-1'>\n  #{
                                   ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:10: syntax error, unexpected '}', expecting keyword_end
));}\n</div>\n<div class='span-12 push-1'>\n  <p>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:16: unknown regexp option - p
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:16: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:16: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
                    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:18: syntax error, unexpected '}', expecting keyword_end
));}\n    <br>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:18: syntax error, unexpected $undefined
));}\n    <br>\n    #{
               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:20: syntax error, unexpected '}', expecting keyword_end
));}\n  </p>\n  <p>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:24: unknown regexp option - p
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:24: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:24: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
                    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:26: syntax error, unexpected '}', expecting keyword_end
));}\n    <br>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:26: syntax error, unexpected $undefined
));}\n    <br>\n    #{
               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:28: syntax error, unexpected '}', expecting keyword_end
));}\n  </p>\n  <p>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:32: unknown regexp option - p
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:32: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:32: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
                    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:34: syntax error, unexpected '}', expecting keyword_end
));}\n    <br>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:34: syntax error, unexpected $undefined
));}\n    <br>\n    #{
               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:36: syntax error, unexpected '}', expecting keyword_end
));}\n  </p>\n  <p>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:40: unknown regexp option - p
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:40: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:40: syntax error, unexpected $undefined
));}\n  </p>\n  <p>\n    #{
                    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:42: syntax error, unexpected '}', expecting keyword_end
));}\n    <br>\n    #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:42: syntax error, unexpected $undefined
));}\n    <br>\n    #{
               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:44: syntax error, unexpected '}', expecting keyword_end
));}\n  </p>\n</div>\n<div class='span-11 last'>\n  #{
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:44: unknown regexp options - dv
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:44: syntax error, unexpected $undefined
));}\n  </p>\n</div>\n<div class='span-11 last'>\n  #{
                     ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:44: syntax error, unexpected keyword_class, expecting keyword_do or '{' or '('
));}\n  </p>\n</div>\n<div class='span-11 last'>\n  #{
                                ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:44: syntax error, unexpected $undefined
));}\n  </p>\n</div>\n<div class='span-11 last'>\n  #{
                                                 ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:47: syntax error, unexpected '}', expecting keyword_end
));}\n  #{_hamlout.format_script_...
    ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:49: syntax error, unexpected $undefined
));}\n  <br>\n  <div class='round-frame'>\...
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:49: syntax error, unexpected keyword_class, expecting keyword_do or '{' or '('
));}\n  <br>\n  <div class='round-frame'>\n    <h3>\n  ...
                          ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:49: syntax error, unexpected $undefined
...>\n  <div class='round-frame'>\n    <h3>\n      Update Pictu...
...                               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:49: syntax error, unexpected $undefined
...class='round-frame'>\n    <h3>\n      Update Pictures\n    <...
...                               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:49: syntax error, unexpected $undefined, expecting keyword_end
...   <h3>\n      Update Pictures\n    </h3>\n    ", 1, false);
...                               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:65: unknown regexp options - dv
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:65: syntax error, unexpected $undefined
));}\n  </div>\n</div>\n<div class='span-22 push-1'>\n  #{
               ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:68: unknown regexp options - dv
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:68: syntax error, unexpected $undefined
));}\n</div>\n", -1, false);::Haml::Util.h...
             ^
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:68: unterminated string meets end of file
/Users/ali/projects/rails/easilyeat/app/views/profiles/edit.html.haml:68: syntax error, unexpected $end, expecting keyword_end

Full trace:

actionpack (3.0.5) lib/action_view/template.rb:255:in `module_eval'
actionpack (3.0.5) lib/action_view/template.rb:255:in `compile'
actionpack (3.0.5) lib/action_view/template.rb:134:in `block in render'
activesupport (3.0.5) lib/active_support/notifications.rb:54:in `instrument'
actionpack (3.0.5) lib/action_view/template.rb:127:in `render'
actionpack (3.0.5) lib/action_view/render/rendering.rb:59:in `block in _render_template'
activesupport (3.0.5) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.5) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.5) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.5) lib/action_view/render/rendering.rb:56:in `_render_template'
actionpack (3.0.5) lib/action_view/render/rendering.rb:26:in `render'
haml (3.0.25) lib/haml/helpers/action_view_mods.rb:13:in `render_with_haml'
actionpack (3.0.5) lib/abstract_controller/rendering.rb:115:in `_render_template'
actionpack (3.0.5) lib/abstract_controller/rendering.rb:109:in `render_to_body'
actionpack (3.0.5) lib/action_controller/metal/renderers.rb:47:in `render_to_body'
actionpack (3.0.5) lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
actionpack (3.0.5) lib/abstract_controller/rendering.rb:102:in `render_to_string'
actionpack (3.0.5) lib/abstract_controller/rendering.rb:93:in `render'
actionpack (3.0.5) lib/action_controller/metal/rendering.rb:17:in `render'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.0.5) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/benchmark.rb:309:in `realtime'
activesupport (3.0.5) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
activerecord (3.0.5) lib/active_record/railties/controller_runtime.rb:15:in `cleanup_view_runtime'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.0.5) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.0.5) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.0.5) lib/abstract_controller/base.rb:150:in `process_action'
actionpack (3.0.5) lib/action_controller/metal/rendering.rb:11:in `process_action'
actionpack (3.0.5) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.0.5) lib/active_support/callbacks.rb:440:in `_run__915475698939286154__process_action__4544791455614824666__callbacks'
activesupport (3.0.5) lib/active_support/callbacks.rb:409:in `_run_process_action_callbacks'
activesupport (3.0.5) lib/active_support/callbacks.rb:93:in `run_callbacks'
actionpack (3.0.5) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.0.5) lib/active_support/notifications.rb:52:in `block in instrument'
activesupport (3.0.5) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.0.5) lib/active_support/notifications.rb:52:in `instrument'
actionpack (3.0.5) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.0.5) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.0.5) lib/abstract_controller/base.rb:119:in `process'
actionpack (3.0.5) lib/abstract_controller/rendering.rb:41:in `process'
actionpack (3.0.5) lib/action_controller/metal.rb:138:in `dispatch'
actionpack (3.0.5) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.0.5) lib/action_controller/metal.rb:178:in `block in action'
actionpack (3.0.5) lib/action_dispatch/routing/route_set.rb:62:in `call'
actionpack (3.0.5) lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
actionpack (3.0.5) lib/action_dispatch/routing/route_set.rb:27:in `call'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:in `block in call'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in `block in recognize'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:82:in `optimized_each'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in `recognize'
rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:in `call'
actionpack (3.0.5) lib/action_dispatch/routing/route_set.rb:492:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/head.rb:14:in `call'
rack (1.2.2) lib/rack/methodoverride.rb:24:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/flash.rb:182:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/cookies.rb:302:in `call'
activerecord (3.0.5) lib/active_record/query_cache.rb:32:in `block in call'
activerecord (3.0.5) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
activerecord (3.0.5) lib/active_record/query_cache.rb:12:in `cache'
activerecord (3.0.5) lib/active_record/query_cache.rb:31:in `call'
activerecord (3.0.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
activesupport (3.0.5) lib/active_support/callbacks.rb:415:in `_run_call_callbacks'
actionpack (3.0.5) lib/action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.2.2) lib/rack/sendfile.rb:107:in `call'
rack (1.2.2) lib/rack/static.rb:33:in `call'
haml (3.0.25) lib/sass/plugin/rack.rb:41:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.0.5) lib/rails/rack/logger.rb:13:in `call'
rack (1.2.2) lib/rack/runtime.rb:17:in `call'
activesupport (3.0.5) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.2.2) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.2.2) lib/rack/lock.rb:11:in `call'
actionpack (3.0.5) lib/action_dispatch/middleware/static.rb:30:in `call'
railties (3.0.5) lib/rails/application.rb:168:in `call'
railties (3.0.5) lib/rails/application.rb:77:in `method_missing'
railties (3.0.5) lib/rails/rack/log_tailer.rb:14:in `call'
rack (1.2.2) lib/rack/content_length.rb:13:in `call'
rack (1.2.2) lib/rack/handler/webrick.rb:52:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'

from nested_form.

 avatar commented on July 30, 2024

And I forgot to thank you for the great gem; it saved my day :)

Also here's the code around the culprit:

.
.
.
.span-22.push-1
    %h2
        Edit the profile of 
        = @profile.vendor[:outlet]

= nested_form_for(@profile, :html => { :multipart => true }) do |f|

.span-22.push-1
.
.
.

from nested_form.

ryanb avatar ryanb commented on July 30, 2024

What happens when you change nested_form_for to form_for and comment out the add/remove links that nested_form provides? I'm trying to determine if this problem is with HAML or with the nested_form gem. It looks like HAML is trying to parse the generated HTML again hence that long list of errors.

from nested_form.

 avatar commented on July 30, 2024

Curiously same thing happened. Apparently haml doesn't like the form_for either.
So I guess I'm back to good old ugly html because I have a few more forms to go :-\

Thanks again :)

from nested_form.

 avatar commented on July 30, 2024

I just found this test app that uses form_for in a haml file: https://github.com/dfischer/Rails-3-Quickstart-Compass--Haml--Sass--SCSS
I haven't test it myself, but I'm going to. There might be some hope :)

from nested_form.

ryanb avatar ryanb commented on July 30, 2024

Make sure you're using the latest version of HAML. It should support form_for without any problems, but I heard there were issues with the new = block syntax when Rails 3 was first released.

from nested_form.

ryanb avatar ryanb commented on July 30, 2024

Closing this because it's not specific to the nested_form gem. Let me know if you find that not to be the case.

from nested_form.

brycehammond avatar brycehammond commented on July 30, 2024

I'm running into this as well, but with erb. The difference being that it's in a namespace:

<%= nested_form_for ([:admin, @celebrity], :html => { :multipart => true }) do |form| %>

Note that this works without the multipart and also worked with Ruby 1.87/Rails 3.0.5 so I'm a bit flummoxed.

This is now with Ruby 1.9.2 and Rails 3.0.10 with nested_form 0.1.1

Here is the full error:

/Users/bryce/Celebrity-Draft/app/views/admin/celebrities/_form.html.erb:11: syntax error, unexpected ',', expecting ')'
...form_for ([:admin, @celebrity], :html => { :multipart => tru...
... ^
/Users/bryce/Celebrity-Draft/app/views/admin/celebrities/_form.html.erb:11: syntax error, unexpected ')', expecting keyword_end
...html => { :multipart => true }) do |form| @output_buffer.saf...
... ^
/Users/bryce/Celebrity-Draft/app/views/admin/celebrities/_form.html.erb:120: syntax error, unexpected keyword_ensure, expecting $end

and the stack trace:

actionpack (3.0.10) lib/action_view/template.rb:258:in module_eval' actionpack (3.0.10) lib/action_view/template.rb:258:incompile'
actionpack (3.0.10) lib/action_view/template.rb:134:in block in render' activesupport (3.0.10) lib/active_support/notifications.rb:54:ininstrument'
actionpack (3.0.10) lib/action_view/template.rb:127:in render' actionpack (3.0.10) lib/action_view/render/partials.rb:333:inrender_partial'
actionpack (3.0.10) lib/action_view/render/partials.rb:262:in block in render' activesupport (3.0.10) lib/active_support/notifications.rb:52:inblock in instrument'
activesupport (3.0.10) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.0.10) lib/active_support/notifications.rb:52:ininstrument'
actionpack (3.0.10) lib/action_view/render/partials.rb:260:in render' actionpack (3.0.10) lib/action_view/render/partials.rb:378:in_render_partial'
actionpack (3.0.10) lib/action_view/render/rendering.rb:22:in render' app/views/admin/celebrities/new.html.erb:8:in_app_views_admin_celebrities_new_html_erb__236081716874337321_2190626040__2769023786101848884'
actionpack (3.0.10) lib/action_view/template.rb:135:in block in render' activesupport (3.0.10) lib/active_support/notifications.rb:54:ininstrument'
actionpack (3.0.10) lib/action_view/template.rb:127:in render' actionpack (3.0.10) lib/action_view/render/rendering.rb:59:inblock in _render_template'
activesupport (3.0.10) lib/active_support/notifications.rb:52:in block in instrument' activesupport (3.0.10) lib/active_support/notifications/instrumenter.rb:21:ininstrument'
activesupport (3.0.10) lib/active_support/notifications.rb:52:in instrument' actionpack (3.0.10) lib/action_view/render/rendering.rb:56:in_render_template'
actionpack (3.0.10) lib/action_view/render/rendering.rb:26:in render' actionpack (3.0.10) lib/abstract_controller/rendering.rb:115:in_render_template'
actionpack (3.0.10) lib/abstract_controller/rendering.rb:109:in render_to_body' actionpack (3.0.10) lib/action_controller/metal/renderers.rb:47:inrender_to_body'
actionpack (3.0.10) lib/action_controller/metal/compatibility.rb:55:in render_to_body' actionpack (3.0.10) lib/abstract_controller/rendering.rb:102:inrender_to_string'
actionpack (3.0.10) lib/abstract_controller/rendering.rb:93:in render' actionpack (3.0.10) lib/action_controller/metal/rendering.rb:17:inrender'
actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:40:in block (2 levels) in render' activesupport (3.0.10) lib/active_support/core_ext/benchmark.rb:5:inblock in ms'
/Users/bryce/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in realtime' activesupport (3.0.10) lib/active_support/core_ext/benchmark.rb:5:inms'
actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:40:in block in render' actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:78:incleanup_view_runtime'
activerecord (3.0.10) lib/active_record/railties/controller_runtime.rb:15:in cleanup_view_runtime' actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:39:inrender'
actionpack (3.0.10) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (3.0.10) lib/action_controller/metal/mime_responds.rb:261:inblock in retrieve_response_from_mimes'
actionpack (3.0.10) lib/action_controller/metal/responder.rb:190:in call' actionpack (3.0.10) lib/action_controller/metal/responder.rb:190:indefault_render'
actionpack (3.0.10) lib/action_controller/metal/responder.rb:126:in to_html' actionpack (3.0.10) lib/action_controller/metal/responder.rb:119:inrespond'
actionpack (3.0.10) lib/action_controller/metal/responder.rb:112:in call' actionpack (3.0.10) lib/action_controller/metal/mime_responds.rb:232:inrespond_with'
app/controllers/admin/celebrities_controller.rb:20:in new' actionpack (3.0.10) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.0.10) lib/abstract_controller/base.rb:150:in process_action' actionpack (3.0.10) lib/action_controller/metal/rendering.rb:11:inprocess_action'
actionpack (3.0.10) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.0.10) lib/active_support/callbacks.rb:441:in_run__753931348443424408__process_action__2575349253571181482__callbacks'
activesupport (3.0.10) lib/active_support/callbacks.rb:410:in _run_process_action_callbacks' activesupport (3.0.10) lib/active_support/callbacks.rb:94:inrun_callbacks'
actionpack (3.0.10) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.0.10) lib/action_controller/metal/rescue.rb:17:inprocess_action'
actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.0.10) lib/active_support/notifications.rb:52:inblock in instrument'
activesupport (3.0.10) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.0.10) lib/active_support/notifications.rb:52:ininstrument'
actionpack (3.0.10) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.0.10) lib/abstract_controller/base.rb:119:inprocess'
actionpack (3.0.10) lib/abstract_controller/rendering.rb:41:in process' actionpack (3.0.10) lib/action_controller/metal.rb:138:indispatch'
actionpack (3.0.10) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.0.10) lib/action_controller/metal.rb:178:inblock in action'
actionpack (3.0.10) lib/action_dispatch/routing/route_set.rb:62:in call' actionpack (3.0.10) lib/action_dispatch/routing/route_set.rb:62:indispatch'
actionpack (3.0.10) lib/action_dispatch/routing/route_set.rb:27:in call' rack-mount (0.6.14) lib/rack/mount/route_set.rb:148:inblock in call'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:93:in block in recognize' rack-mount (0.6.14) lib/rack/mount/code_generation.rb:75:inoptimized_each'
rack-mount (0.6.14) lib/rack/mount/code_generation.rb:92:in recognize' rack-mount (0.6.14) lib/rack/mount/route_set.rb:139:incall'
actionpack (3.0.10) lib/action_dispatch/routing/route_set.rb:493:in call' hirefireapp (0.0.5) lib/hirefireapp/middleware.rb:27:incall'
airbrake (3.0.5) lib/airbrake/rack.rb:27:in call' warden (1.1.0) lib/warden/manager.rb:35:inblock in call'
warden (1.1.0) lib/warden/manager.rb:34:in catch' warden (1.1.0) lib/warden/manager.rb:34:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' actionpack (3.0.10) lib/action_dispatch/middleware/head.rb:14:incall'
rack (1.2.4) lib/rack/methodoverride.rb:24:in call' actionpack (3.0.10) lib/action_dispatch/middleware/params_parser.rb:21:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/flash.rb:182:in call' actionpack (3.0.10) lib/action_dispatch/middleware/session/abstract_store.rb:149:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/cookies.rb:302:in call' activerecord (3.0.10) lib/active_record/query_cache.rb:32:inblock in call'
activerecord (3.0.10) lib/active_record/connection_adapters/abstract/query_cache.rb:28:in cache' activerecord (3.0.10) lib/active_record/query_cache.rb:12:incache'
activerecord (3.0.10) lib/active_record/query_cache.rb:31:in call' activerecord (3.0.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:354:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/callbacks.rb:46:in block in call' activesupport (3.0.10) lib/active_support/callbacks.rb:416:in_run_call_callbacks'
actionpack (3.0.10) lib/action_dispatch/middleware/callbacks.rb:44:in call' rack (1.2.4) lib/rack/sendfile.rb:106:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/remote_ip.rb:48:in call' actionpack (3.0.10) lib/action_dispatch/middleware/show_exceptions.rb:47:incall'
railties (3.0.10) lib/rails/rack/logger.rb:13:in call' rack (1.2.4) lib/rack/runtime.rb:17:incall'
activesupport (3.0.10) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.2.4) lib/rack/lock.rb:11:inblock in call'
internal:prelude:10:in synchronize' rack (1.2.4) lib/rack/lock.rb:11:incall'
actionpack (3.0.10) lib/action_dispatch/middleware/static.rb:30:in call' airbrake (3.0.5) lib/airbrake/user_informer.rb:12:incall'
railties (3.0.10) lib/rails/application.rb:168:in call' railties (3.0.10) lib/rails/application.rb:77:inmethod_missing'
railties (3.0.10) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.4) lib/rack/content_length.rb:13:incall'
rack (1.2.4) lib/rack/handler/webrick.rb:52:in service' /Users/bryce/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:inservice'
/Users/bryce/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in run' /Users/bryce/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:inblock in start_thread'

from nested_form.

brycehammond avatar brycehammond commented on July 30, 2024

And I concur with easilyx. Awesome and essential gem. Thanks Ryan!

from nested_form.

brycehammond avatar brycehammond commented on July 30, 2024

Interestingly enough, I found the solution. This doesn't work:

<%= nested_form_for ([:admin, @celebrity], :html => { :multipart => true }) do |form| %>

but this does:

<%= nested_form_for [:admin, @celebrity], :html => { :multipart => true } do |form| %>

from nested_form.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.