Displaying 2 results from an estimated 2 matches for "field_tag".
Did you mean:
field_tags
2006 Apr 13
0
Model with file uploads
...the file_column plugin but I dont like the idea of
storing the file names in the database when I dont need to, plus I dont
think it is very flexible.
Here''s what I done. What do you think of this? Any suggestions?
class Video < ActiveRecord::Base
acts_as_taggable
attr_accessor :field_tags
attr_accessor :field_thumb
attr_accessor :field_video
validates_presence_of :title
validates_presence_of :description
validates_presence_of :field_tags
def validate_on_create
errors.add ''field_thumb'', ''Invalid thumb'' unless
!self.field_thumb.r...
2009 Jun 08
1
why can't I add a :class to text_field?
<%= text_field_tag ''login'' ,nil, {:class => ''line''} %>
the old way work.
<%= f.text_field :login, :class => ''line'' %>
but why this doesn''t.
--
Posted via http://www.ruby-forum.com/.