search for: to_input_field_tag

Displaying 10 results from an estimated 10 matches for "to_input_field_tag".

2006 Mar 20
1
FileColumn question
Can someone please help me with this. I have an Images table :- create table images ( id integer unsigned not null auto_increment primary key, image varchar(200) not null default '''' )ENGINE=InnoDB default CHARSET=latin1; And a car table :- create table cars ( id integer unsigned not null auto_increment primary key, user_id integer unsigned not null, title varchar(100) not
2006 Feb 21
2
ActiveRecord before_ callbacks question
...tionpack-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.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:76:in `text_field'' #{RAILS_ROOT}/app/views/admin/_form.rhtml:5 #{RAILS_ROOT}/app/views/admin/new.rhtml:4 Adressen.rb looks like this: class Adressen < ActiveRecord::Base set_table_name &...
2006 May 18
3
populating array of text_fields from an array of model objects
I have in my view the following: <% 0.upto(@num_performances) do |idx| -%> <%= text_field ''performance'', ''city'', :index => idx, %> <%= text_field ''performance'', ''venue'', :index => idx, %> <% end -%> and in my controller I have: @performance = [Performance.new("city" =>
2006 Jun 14
2
Date as INPUT not Selects
Greetings! Can anyone tell me how to use just a normal input field as a date entry? I can use a text_field tag, but that brings the date out in CCYY-MM-DD format. I would like to be able to simply key in my dates like mm/dd/ccyy format. Thanks, Jeremy
2006 Apr 18
1
''wrong number of arguments'' for text_field?
...-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.8/gems/actionpack-1.11.2/lib/action_view/helpers/form_helper.rb:76:in `text_field'' #{RAILS_ROOT}/app/views/inventories/_form.rhtml:1 -- Posted via http://www.ruby-forum.com/.
2008 Sep 10
0
wrong number of arguments
.../ 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/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:535:in `to_input_field_tag'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:358:in `text_field'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/ helpers/form_helper.rb:709:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.0/li...
2007 Feb 28
1
Rails 1.2 Bug (?): to_text_area_tag
Hi all, I''m fairly new to rails and thus might be missing something here, but I think I have found a but in ActionPack. If this is not the right place to post this, please let me know where. I discovered this issue while attempting to use the lastest edge version of ajax_scaffold (mooey, MUI, whatever it''s going to be called). I kept getting the error: private method
2006 Mar 01
3
Form helpers and overloaded methods - help!
Can someone explain why form helpers appear to bypass any model methods I override for fields that are bound to database fields? It would be great if someone could tell me how to force the form field, etc to call the method instead of looking at the database / attributes collection. Let''s say I have a column called ''price'' in my database table "books"
2009 Dec 24
4
NoMethodError
...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/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/ form_helper.rb:754:in `to_input_field_tag'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/ form_helper.rb:544:in `text_field'' /home/darwin/projects/library/app/views/book/new.html.erb:4:in `_run_erb_app47views47book47new46html46erb'' /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_vie...
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):