You are missing a : in front of center_manager2 and you have an extra , 
at the end of the line.

Are you in production mode ? i.e. - do you need to restart your rails 
server ?

/S

On 9/24/2009 9:17 AM, Barnettech wrote:
> The active scaffold is working great I just can't add new columns to
> the database/active_scaffold.  Please help.
>
> I just manually added 2 columns to the database, I don't use
> migrations currently.  I added the columns to this line in my
> controller (I added center_manager1 and center_manager2):
>
> config.columns =
> [:page_title,:page_heading_title,:page_stub,:parent,:short_description,:meta_keywords,:main_content,
>      
> :address_line_1,:address_line_2,:search_link,:map_google,:map_yahoo,:phone,:center_manager1,center_manager2,:located_brief,:directions,:parking,:public_transportation,:image_url_1,:image_url_2,:image_url_3,:location_holidays,:location_hours,]
>
> and it doesn't recognize the new column:
>
> I get this error:
>
> ActionView::TemplateError (undefined method `center_manager1' for
> #<Location:0x688ac9c>) on line #7 of vendor/plugins/active/frontends/
> default/views/_form_attribute.rhtml:
> 4:<label for="<%= "record_#{column.name}" %>"><%= column.label
> %></label>
> 5:</dt>
> 6:<dd>
> 7:<%= active_scaffold_input_for column, scope %>
> 8:<% if column.description -%>
> 9:<span class="description"><%= column.description %></span>
> 10:<% end -%>
>
>      c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/
> active_record/attribute_methods.rb:205:in `method_missing'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> helpers/form_helper.rb:562:in `send'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> helpers/form_helper.rb:562:in `value_before_type_cast'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> helpers/form_helper.rb:550:in `value_before_type_cast'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> helpers/form_helper.rb:465:in `to_input_field_tag'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> helpers/form_helper.rb:289:in `text_field'
>      vendor/plugins/active/lib/helpers/form_column_helpers.rb:165:in
> `active_scaffold_input_virtual'
>      vendor/plugins/active/lib/helpers/form_column_helpers.rb:24:in
> `active_scaffold_input_for'
>      vendor/plugins/active/frontends/default/views/
> _form_attribute.rhtml:7:in
> `_run_erb_47vendor47plugins47active47frontends47default47views47_form_attribute46rhtml'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> base.rb:637:in `send'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> base.rb:637:in `compile_and_render_template'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> base.rb:365:in `render_template'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> base.rb:316:in `render_file'
>      c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/
> base.rb:331:in `render_without_active_scaffold'
>      vendor/plugins/active/lib/extensions/action_view_rendering.rb:
> 56:in `render'
>
> >
>    


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to