ok, re "I'm just trying to load a set of options which doesn't require tables (i.e. using tableless plugin)" I've got the View working now, however when I submit back I have an error as Rails tries to populate the association models. Any ideas - it's like the parameter array/hash structure coming into Rails is fine, however when it tries to load the association data into the model for the associations it has a problem.
Is my model (graph_options.rb) correct? Do I need to specify a specific "attr_accessible :lines" here? Or should the "has_many :lines" be enough? ------------- ERROR ----------- ActiveRecord::AssociationTypeMismatch in Graph2Controller#save Line(#19260340) expected, got HashWithIndifferentAccess(#9296710) RAILS_ROOT: /Users/greg/source/myequity Application Trace | Framework Trace | Full Trace /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:210:in `raise_on_type_mismatch' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:232:in `replace' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:232:in `each' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:232:in `replace' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations.rb:1156:in `lines=' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2372:in `send' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2372:in `attributes=' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2371:in `each' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2371:in `attributes=' /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:2141:in `initialize' app/controllers/graph2_controller.rb:22:in `new' app/controllers/graph2_controller.rb:22:in `save' /opt/local/bin/rdebug-ide:19:in `load' /opt/local/bin/rdebug-ide:19 Request Parameters: {"commit"=>"Create Graph", "authenticity_token"=>"78f0a9ff834dbf09d2ea788e5174649cbc933bf9", "graph_options"=>{"start_date"=>"August 22, 2008", "end_date"=>"Februar y 22, 2009", "label_title"=>"asdf", "lines"=>[{"foo"=>"November 22, 2008", "calc_type"=>"manual calc"}, {"foo"=>"November 22, 2008", "calc_type"=>"manual calc"}], "granularity"=>"1", "chart_type"=>"1"}} ----- VIEW ---------- <h1>Graph Options Selection</h1> <% form_for :graph_options, :url => {:action => 'save'} do |f| %> <%= f.error_messages %> <table> <tr><td>Graph Title: </td><td><%= f.text_field :label_title %></td></tr> <tr><td>Start Date: </td><td><%= f.calendar_date_select :start_date %></td></tr> <tr><td>End Date: </td><td><%= f.calendar_date_select :end_date %></td></tr> <tr><td>Granularity (days): </td><td><%= f.text_field :granularity %></td></tr> <tr><td>Chart Type: </td><td><%= f.text_field :chart_type %></td></tr> <% @graph_options.lines.each do |line| %> <tr> <% fields_for "graph_options[lines][]", @graph_options.lines[0] do |fields| %> <td> Calculation Type: <%= fields.text_field 'calc_type' %> </td> <td> Calculation Type: <%= fields.calendar_date_select 'foo' %> </td> <% end %> </tr> <% end %> </table> <%= submit_tag 'Create Graph' %> <% end %> ------ CONTROLLER ------- class Graph2Controller < ApplicationController def edit # Default parameters for form @graph_options = GraphOptions.new @graph_options.start_date = Time.now.to_date - 3.months @graph_options.end_date = Time.now.to_date + 3.months @graph_options.granularity = 1 @graph_options.lines.build @graph_options.lines.build # Testing ONly @graph_options.chart_type = 1 @graph_options.lines[0].calc_type = "manual calc" @graph_options.lines[1].calc_type = "auto calc" @graph_options.lines[0].foo = Time.now.to_date @graph_options.lines[1].foo = Time.now.to_date end def save @graph_options = GraphOptions.new(params[:graph_options]) render :action => "edit" if [EMAIL PROTECTED] end end ----------MODEL---------- class GraphOptions < ActiveRecord::BaseWithoutTable column :label_title, :string column :start_date, :date column :end_date, :date column :granularity, :integer column :chart_type, :integer #attr_accessible :lines has_many :lines validates_presence_of :label_title validates_numericality_of :granularity, :chart_type validates_associated :lines def validate errors.add('start_date', 'is not in Date format') if !start_date.kind_of?(Date) errors.add('end_date', 'is not in Date format') if !end_date.kind_of?(Date) end end class Line < ActiveRecord::BaseWithoutTable # attr_accessible :calc_type column :calc_type, :string column :foo, :date validates_presence_of :calc_type end On Sat, Nov 22, 2008 at 3:35 PM, Greg Hauptmann <[EMAIL PROTECTED]> wrote: > Hi, > > I'm just trying to load a set of options which doesn't require tables > (i.e. using tableless plugin). > > Error when going to view at "http://localhost:3000/graph2/edit" is > undefined method `calc_type' for Line(Table doesn't exist):Class > > Thanks in advance - details below: > > > -----controller------ > class Graph2Controller < ApplicationController > > def edit > # Default parameters for form > @graph_options = GraphOptions.new > @graph_options.start_date = Time.now.to_date - 3.months > @graph_options.end_date = Time.now.to_date + 3.months > @graph_options.granularity = 1 > @graph_options.lines.build > @graph_options.lines[0].calc_type = "manual calc" > > end > > def save > @graph_options = GraphOptions.new(params[:graph_options]) > render :action => "edit" if [EMAIL PROTECTED] > end > > end > > -------- model ------ > class GraphOptions < ActiveRecord::BaseWithoutTable > column :label_title, :string > column :start_date, :date > column :end_date, :date > column :granularity, :integer > > has_many :lines > > validates_presence_of :label_title > validates_numericality_of :granularity > validates_associated :lines > > > def validate > errors.add('start_date', 'is not in Date format') if > !start_date.kind_of?(Date) > errors.add('end_date', 'is not in Date format') if !end_date.kind_of?(Date) > end > > end > > class Line < ActiveRecord::BaseWithoutTable > column :calc_type, :string > validates_presence_of :calc_type > end > > ----- view ------- > <h1>Graph Options Selection</h1> > > <% form_for :graph_options, :url => {:action => 'save'} do |f| %> > <%= f.error_messages %> > <table> > <tr><td>Graph Title: </td><td><%= f.text_field :label_title %></td></tr> > <tr><td>Start Date: </td><td><%= f.calendar_date_select > :start_date %></td></tr> > <tr><td>End Date: </td><td><%= f.calendar_date_select :end_date > %></td></tr> > <tr><td>Granularity (days): </td><td><%= f.text_field :granularity > %></td></tr> > </table> > > <% fields_for "graph_options[lines][]", @graph_options.lines do |fields| %> > Calculation Type: <%= fields.text_field 'calc_type' %> > # <=== ERROR IS HERE > <% end %> > > > <%= submit_tag 'Create Graph' %> > > <% end %> > > > -------Error---------- > NoMethodError in Graph2#edit > > Showing graph2/edit.html.erb where line #13 raised: > > undefined method `calc_type' for Line(Table doesn't exist):Class > > Extracted source (around line #13): > > 10: </table> > 11: > 12: <% fields_for "graph_options[lines][]", @graph_options.lines do > |fields| %> > 13: Calculation Type: <%= fields.text_field 'calc_type' %> > 14: <% end %> > 15: > 16: > > RAILS_ROOT: /Users/greg/source/myequity > Application Trace | Framework Trace | Full Trace > > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1672:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1857:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:284:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:616:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:535:in > `to_input_field_tag' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:358:in > `text_field' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `text_field' > app/views/graph2/edit.html.erb:13:in > `_run_erb_47app47views47graph247edit46html46erb' > app/views/graph2/edit.html.erb:12:in > `_run_erb_47app47views47graph247edit46html46erb' > app/views/graph2/edit.html.erb:3:in > `_run_erb_47app47views47graph247edit46html46erb' > /opt/local/bin/rdebug-ide:19:in `load' > /opt/local/bin/rdebug-ide:19 > > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1672:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1857:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:284:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:616:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:535:in > `to_input_field_tag' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:358:in > `text_field' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `text_field' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:317:in > `fields_for' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:317:in > `fields_for' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:253:in > `form_for' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `execute' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:35:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:22:in > `render_template' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:248:in > `render_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1112:in > `render_for_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:845:in > `render_with_no_layout' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/layout.rb:251:in > `render_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/core_ext/benchmark.rb:8:in > `realtime' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1161:in > `default_render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1167:in > `perform_action_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in > `call_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in > `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in > `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `process_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in > `process_without_session_management_support' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in > `handle_request' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in > `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in > `new_constants_in' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/servers/mongrel.rb:64 > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in > `require' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in > `new_constants_in' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in > `require' > /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:39 > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > script/server:3 > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in > `debug_load' > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in > `main' > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/bin/rdebug-ide:76 > > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1672:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:288:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:1857:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_proxy.rb:164:in > `with_scope' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/associations/association_collection.rb:284:in > `method_missing' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:628:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:616:in > `value_before_type_cast' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:535:in > `to_input_field_tag' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:358:in > `text_field' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:713:in > `text_field' > app/views/graph2/edit.html.erb:13:in > `_run_erb_47app47views47graph247edit46html46erb' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:317:in > `fields_for' > app/views/graph2/edit.html.erb:12:in > `_run_erb_47app47views47graph247edit46html46erb' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:317:in > `fields_for' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/helpers/form_helper.rb:253:in > `form_for' > app/views/graph2/edit.html.erb:3:in > `_run_erb_47app47views47graph247edit46html46erb' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:342:in > `execute' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template_handlers/compilable.rb:29:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:35:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/template.rb:22:in > `render_template' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_view/base.rb:248:in > `render_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1112:in > `render_for_file' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:845:in > `render_with_no_layout' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/layout.rb:251:in > `render_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/core_ext/benchmark.rb:8:in > `realtime' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:51:in > `render_without_active_scaffold' > vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in > `render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1161:in > `default_render' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1167:in > `perform_action_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in > `call_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in > `perform_action_without_benchmark' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in > `perform_action_without_caching' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in > `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in > `cache' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in > `perform_action' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `send' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in > `process_without_filters' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in > `process_without_session_management_support' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in > `handle_request' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in > `dispatch_cgi' > /opt/local/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in > `dispatch' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:76:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `synchronize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/rails.rb:74:in > `process' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:159:in > `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:158:in > `process_client' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in > `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:285:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in > `initialize' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `new' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel.rb:268:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:282:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in > `each' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/configurator.rb:281:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:128:in `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/lib/mongrel/command.rb:212:in > `run' > /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.4/bin/mongrel_rails:281 > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in > `new_constants_in' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in > `load' > /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/servers/mongrel.rb:64 > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in > `require' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in > `new_constants_in' > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in > `require' > /opt/local/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:39 > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' > script/server:3 > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in > `debug_load' > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/lib/ruby-debug.rb:96:in > `main' > /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.1/bin/rdebug-ide:76 > /opt/local/bin/rdebug-ide:19:in `load' > /opt/local/bin/rdebug-ide:19 > > Request > > Parameters: > > None > > Show session dump > > --- > :csrf_id: e40b12ec5ff840a756d4a271e5250ca9 > as:category: > :list: {} > > flash: !map:ActionController::Flash::FlashHash {} > > > Response > > Headers: > > {"cookie"=>[], > "Cache-Control"=>"no-cache"} > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---