I updated to your latest commit and it looks like my action is now expecting JS rather than HTML for the response? Is this correct?
I have restructured the templates to use _base_form but it is complaing that my top level form edit_password is not found even though edit_password.html.erb is present and was being presented previously. Any pointers welcome. If this is not a stable commit and I should use a prior one, please indicate which one is stable. Michael On Jan 19, 2011, at 12:23 AM, vhochstein wrote: > Hi Michael, > > if you would like to design a new form you have to dive a little bit > deeper than just create.html.erb or update.html.erb. > These are calling partials: _create_form.html.erb > (_update_form.html.erb) which are calling another partial > _base_form.html.erb. > > _base_form.html.erb is doing the form rendering. > _create_form.html.erb is configuring _base_form.html.erb to its own > needs. > > Basically you should try to use _base_form.html.erb, cause it will > generate the form in a way that activescaffold likes it. > You ve got lots of options you can pass to base_form. > If that does nt fit your needs, you have to copy and paste... > > Hope that helps for a start. > > -- > Volker > > On Jan 19, 5:56 am, Michael Latta <[email protected]> wrote: >> This is the error I get. I looked at the crete.html.erb and update.html.erb >> for examples but they do not generate a -form that I can see. They generate >> -view ids. The action link has -link not -form. >> >> TypeError: Result of expression >> 'ActiveScaffold.find_action_link('as_users-set_password-2-form')' [null] is >> not an object. >> >> Michael >> >> On Jan 18, 2011, at 9:47 PM, Michael Latta wrote: >> >>> That seems to require that the form rendered for the action conform to some >>> expectations, like having a -form id. Can you suggest what I need to do in >>> the render tamplate for the action to match what this rjs expects? Is >>> there an AS method that wraps a normal ejs template with what is needed? >> >>> Michael >> >>> On Jan 18, 2011, at 1:20 AM, vhochstein wrote: >> >>>> Hi Michael, >> >>>> take a look into on_update.js.rjs for an example to close an >>>> action_link. >> >>>> -- >>>> Volker >> >>>> On Jan 17, 6:11 pm, Michael Latta <[email protected]> wrote: >>>>> Is there a way to close the inline action form when the user selects the >>>>> submit action? It looks like the request is expecting JS back, but I do >>>>> not know what to return. Does it accept just normal RJS render :update? >>>>> Or are there special methods to build the JS properly to deal with item >>>>> id based tags etc? >> >>>>> Michael >> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "ActiveScaffold : Ruby on Rails plugin" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group >>>> athttp://groups.google.com/group/activescaffold?hl=en. >> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "ActiveScaffold : Ruby on Rails plugin" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group >>> athttp://groups.google.com/group/activescaffold?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "ActiveScaffold : Ruby on Rails plugin" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/activescaffold?hl=en. > -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en.
