On Miércoles, 15 de Septiembre de 2010 10:32:17 Iñaki Baz Castillo escribió: > 2010/9/15 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > >> Could I know the differences between both "versions" of > >> activescaffold? how to determine when to use each one (taking into > >> account that both are supposed to work under rails-2.3.X? > > > > In a new project, use master branch. In an project started with a > > previous version, stick with rails-2.3 or remove deprecation warnings and > > update to master branch. > > > > After update to master branch you will have to update your helper > > overrides because in master branch you will get full options hash instead > > of only input name. > > Well, I've realized that in amster branch it's required to name the > helpfer method starting by the controller itself, this is: > > module ClientsHelper > old branch: def start_date_column ... > master branch: def client_start_date_column
But old name work, it's deprecated and it will be removed in next version. > > > That change cannot be done with a deprecation warning, so master branch > > break backwards compatibility. > > The case I've realized jsut shows a warning but still works. What do > you mean with "full options hash"? Is it documented in the wiki? any > link please? It's in form overrides, not field (list) overrides. It's documented in Form Overrides: http://wiki.github.com/activescaffold/active_scaffold/form-overrides Old branch: def start_date_form_column(record, input_name) text_field :record, :start_date, :name => input_name, :id => .... end Master branch: # start_date_form_column will work but you will get a deprecation warning def client_start_date_form_column(record, options) text_field :record, :start_date, options end So you get id in AS format, onchange event if you enable update_column, and class names added by AS. > > > It's strange you get that error only in master branch, do you have a > > WebUsersController? > > In devise the controller is created during startup. You write > something as "devise_for :web_user" and it automatically creates a > WebUsersController, some methods and so on. With activescaffold master > branch it fails as I shown in the error log. With 2.3.x branch it > works perfectly. It's very strange, active_scaffold_controller_for has not changed. Can you send me your application? To me, not to the list. -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- 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.
