search for: form_help

Displaying 20 results from an estimated 50 matches for "form_help".

Did you mean: form_helper
2006 Jul 16
7
form_helpers ?
Just a quick silly question , are form_helpers actually helper.rb files ? Stuart
2008 Sep 10
0
wrong number of arguments
...gt; 8: <%= f.text_field :name %> 9: </p> 10: <p> 11: <%= f.label :time %><br /> RAILS_ROOT: /Users/ryan/Documents/Projects/store Application Trace | Framework Trace | Full Trace /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:623:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:623:in `value_before_type_cast'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:612:in `value_before_type_cast'' /usr/...
2006 Feb 21
2
ActiveRecord before_ callbacks question
...inclusion: /app/views/admin/new.rhtml RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1498:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:253:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:253:in `value_before_type_cast'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:168:in `to_input_field_tag'' /usr/lib/ruby/gems/1...
2006 Apr 18
1
''wrong number of arguments'' for text_field?
...ering inventories/new ActionView::TemplateError (wrong number of arguments (1 for 2)) on line #1 of app/views/inventories/_form.rhtml: 1: <%= text_field ''inventory'', ''quantity'' %> /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:253:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:253:in `value_before_type_cast'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:168:in `to_input_field_tag'' /usr/lib...
2006 Nov 04
2
how to use LabellingFormBuilder
Railsers: As usual for a product written very rapidly, most of its documentation assumes some other documentation told you something critical. For example, the file form_helper.rb tempts me with this documentation: # <% form_for :person, @person, :url => { :action => "update" }, :builder => LabellingFormBuilder do |f| %> That''s beautiful. Now what do I require() into my controller.rb file to get that identifier? Poking around with...
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web Development with Rails. In interation E1 NoMethodError in Admin#checkout Showing app/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12):
2009 Nov 18
4
rails newbie : routing error
...y using localhost:300/expenses/new ). And the trace : vendor/rails/actionpack/lib/action_controller/record_identifier.rb: 72:in `dom_id'' vendor/rails/actionpack/lib/action_view/helpers/ record_identification_helper.rb:16:in `dom_id'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:264:in `apply_form_for_options!'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb:248:in `form_for'' app/views/expenses/new.html.erb:1:in `_run_erb_47app47views47expenses47new46html46erb'' app/controllers/expenses_controller.rb:18:in `create'' Wh...
2009 Dec 24
4
NoMethodError
...ect</label>: RAILS_ROOT: /home/user/projects/library Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/ attribute_methods.rb:260:in `method_missing'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/ form_helper.rb:845:in `send'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/ form_helper.rb:845:in `value_before_type_cast'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/ form_helper.rb:833:in `value_before_type_cast'' /usr/lib/ruby/gems/...
2007 Nov 06
2
Why is this view spec failing?
...rspec/lib/spec/mocks/proxy.rb:83:in `raise_unexpected_message_error'' #{RAILS_ROOT}/vendor/plugins/rspec/lib/spec/mocks/mock.rb:20:in `method_missing'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:356:in `send'' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/form_helper.rb:356:in `value_before_type_cast'' *************** This is using the auto-created test it "should render new form&q...
2005 Mar 12
0
scaffolding issue
...//127.0.0.1/timedatevalidate/public/timedatevalidates/list works and shows a link to http://127.0.0.1/timedatevalidate/public/timedatevalidates/new which also routes to the right spot. this, however, blows up with /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/form_helper.rb:236:in `time'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/form_helper.rb:236:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.5.1/lib/action_view/helpers/form_helper.rb:236:in `value'' /usr/local/lib/ruby/gems/1.8/gems/a...
2008 Feb 05
1
Unknown method error with control_for
Is there a trick to using control_for in forms? I''ve been trying to make a simple form with a couple of text fields and I keep getting a unknown method error. Thanks!
2006 Jun 02
3
Advice, why value_before_type_cast in FormHelper?
I am wondering why is in creating text fields with form_helper used value_before_type_cast instead of attribute value for field value? I set rails enviroment so date fields are in european format (dd.mm.yyyy) and would like to have same format in forms, but because of value_before_type_cast is called, form fields are filled with ''yyyy-mm-dd'...
2008 Dec 20
3
undefined method `stories_path'
..._routes.rb:112:in `polymorphic_url'' /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/polymorphic_routes.rb:119:in `polymorphic_path'' /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:269:in `apply_form_for_options!'' /opt/ruby-enterprise-1.8.6-20081215/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_view/helpers/form_helper.rb:248:in `form_for'' /var/www/html/railsapps/shovell/dev/app/views/stories/new.html.erb:1 controller: class StoriesController &lt...
2005 Nov 15
2
FormOptionsHelper select call failing
...9;] with [[''a'', ''a''], [''b'', ''b''], [''c'', ''c'']] generates the same error. The stack trace looks like this: /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_helper.rb:247:in `format'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_helper.rb:247:in `send'' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.11.0/lib/ action_view/helpers/form_helper.rb:247:in `value'' /opt/local/lib/ruby/g...
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a select list in a form from a database? I have a form to create a new task. The task is for a client, so there should be a select list populated from my clients table. I thought this would work: <%= select ''task'', ''client_id'', Client.find_all, "id", "name"
2006 Aug 07
0
ROR Architecture question
...t me create custom fields on the fly? I''d like to see how they did it. Or if anyone has any tips as to how I should design this, please go ahead :). Since I wasn''t sure how to proceed, I put all my objects related to this in /lib. My problem is that I cannot call any of the form_helper methods from a normal class in /lib. I''ve tried require ''action_view/helpers/form_helper.rb'', include ''Action_view::Helpers::FormHelper'' without success. Any tips on this? Any help would be appreciated, Jd
2008 Apr 09
3
form_tag and form_for cause #protect_from_forgery errors
...rb:430:in `extra_tags_for_form'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper.rb:438:in `form_tag_html'' vendor/rails/actionpack/lib/action_view/helpers/ form_tag_helper.rb:41:in `form_tag'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb: 204:in `form_for'' app/views/users/new.fbml.erb:2:in `_run_erb_47app47views47users47new46fbml46erb'' I''ve got this in my application.rb: config.action_controller.session_store = :active_record_store config.action_controller.session = { :session_ke...
2007 Dec 07
4
strange error on mock proxy
..._view/base.rb:352:in `orig_render'' vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/ action_view/base.rb:22:in `render'' app/views//units/new.html.erb:6:in `_run_47app47views47units47new46html46erb'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb: 248:in `fields_for'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb: 184:in `form_for'' app/views//units/new.html.erb:5:in `_run_47app47views47units47new46html46erb'' vendor/rails/actionpack/lib/action_view/base.rb:390:in `send'...
2009 Jan 27
2
Login form_tag with select_tag option
Hi all, In the application i develop, a sophisticated login system is required. Being a newbie in Ruby, i''m not comfortable with the select tag in the form tag. My requirement: 2 tables - User(LoginName, Password, RoleId...) and Role(RoleId, RoleName...) View - RoleNames to be loaded in the drop down box and On submit, RoleId to be passed to controller for authentication. My Code
2007 Dec 01
3
Rails 2 problem with compute_public_path
...ers/ asset_tag_helper.rb:350:in `path_to_image'' vendor/rails/actionpack/lib/action_view/helpers/ asset_tag_helper.rb:390:in `image_tag'' app/views/users/new.rhtml:61:in `_run_rhtml_47app47views47users47new46rhtml'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb: 224:in `fields_for'' vendor/rails/actionpack/lib/action_view/helpers/form_helper.rb: 184:in `form_for'' ... Basically, every function that calls `compute_public_path'' gets this error. In this case, it''s ''image_tag''. I''m looking...