Sanjay, if you finally have rails 2.2 working and you want the create form to always be open, then you should use config.list.always_show_create = true
On Wed, Feb 4, 2009 at 2:31 AM, Sanjay Bahl <[email protected]> wrote: > > some more tweaking and ....No More errors now. but, still what works > is the script David gave. > > Any ways its working some way THANKS to all you geeks ,God Bless You! > > my controller code is below if any body wants to suggest : > > active_scaffold :todo do |config| > config.actions = [:create, :update, :show,:list,:search,:delete] > config.list.columns = [ :body, :done,:due] > config.columns = [ :body, :done,:due] > columns[:body].label = "Description" > columns[:due].label ="Due on" > columns[:done].label = "Done" > config.create.persistent=true > end > > regards > Sanjay > > On Wed, Feb 4, 2009 at 11:01 AM, Sanjay Bahl <[email protected]> > wrote: > > On further analysis , i found that the enviroment file had version set > > as 2.1.0 so i changed it to below > > # Specifies gem version of Rails to use when vendor/rails is not present > > RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION > > > > but now i get a new error whcih says : > > .../aliasing.rb:33:in `alias_method': undefined method `render_file' for > class > > `ActionView::Base' (NameError) > > > > any clue? > > > > ~Sanjay > > > > > > On Wed, Feb 4, 2009 at 10:24 AM, Sanjay Bahl <[email protected]> > wrote: > >> I Have rails 2.2.2 and when i install the active scaffold for rails > >> 2.2 its gives an error in starting up and says ".... ActiveScaffold > >> requires Rails 2.2 or higher ...". i wonder whats wrong. > >> > >> ~sanjay > >> > >> On Tue, Feb 3, 2009 at 8:30 PM, Kenny Ortmann <[email protected]> > wrote: > >>> Sergio - it's not up to date he is using AS 1.2 > >>> > >>> On Tue, Feb 3, 2009 at 8:59 AM, Sergio Cambra .:: entreCables - Symbol > >>> Servicios Informáticos S.L. ::. <[email protected]> wrote: > >>>> > >>>> If your active_scaffold copy is up to date, you should have def > >>>> always_show_create in line 91 of lib/active_scaffold/config/list.rb > >>>> > >>>> El Tuesday 03 February 2009 12:51:14 Sanjay Bahl escribió: > >>>> > Yes its live and running on my local machine > >>>> > > >>>> > On Tue, Feb 3, 2009 at 4:47 PM, Sergio Cambra .:: entreCables - > Symbol > >>>> > > >>>> > Servicios Informáticos S.L. ::. <[email protected]> wrote: > >>>> > > El Tuesday 03 February 2009 10:36:10 Sanjay escribió: > >>>> > >> Hi David,Sergio > >>>> > >> Thanks for your reply > >>>> > >> I am using Rails 2.2.2 and active scaffold 1.2 > >>>> > >> > >>>> > >> David's fix is working great, but Sergio' code which looks like > below > >>>> > >> > >>>> > >> active_scaffold :todo do |config| > >>>> > >> config.actions = [:create, :update, > :show,:list,:search,:delete] > >>>> > >> config.list.columns = [ :body, :done,:due] > >>>> > >> config.columns = [ :body, :done,:due] > >>>> > >> columns[:body].label = "Description" > >>>> > >> columns[:due].label ="Due on" > >>>> > >> columns[:done].label = "Done" > >>>> > >> config.list.always_show_create= true > >>>> > >> > >>>> > >> end > >>>> > >> > >>>> > >> > >>>> > >> gives the following error > >>>> > >> > >>>> > >> undefined method `always_show_create=' for > >>>> > >> #<ActiveScaffold::Config::List:0x68dcf4c> .am i doing something > >>>> > >> wrong? > >>>> > > > >>>> > > Do you have an actualized active_scaffold? > >>>> > > > >>>> > > -- > >>>> > > Sergio Cambra .:: entreCables S.L. ::. > >>>> > > Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza > >>>> > > T) 902 021 404 F) 976 52 98 07 E) [email protected] > >>>> > > >>>> > > >>>> > >>>> > >>>> -- > >>>> Sergio Cambra .:: entreCables S.L. ::. > >>>> Nicolás Guillén 6, locales 2 y 3. 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 -~----------~----~----~----~------~----~------~--~---
