similar to: Form element that is not an AR object attribute

Displaying 20 results from an estimated 1000 matches similar to: "Form element that is not an AR object attribute"

2007 Aug 02
0
Overridding readonly attribute in custom form builder
Hi, I''ve created a custom form builder and overridden text_area so that all fields are readonly. There are a few instances that I would want an editable text_area, so I have tried to create an editable_text_area method. I have tried passing text_area(method, options.merge(:readonly=>false)) to the method, but it doesn''t work: the area is still not editable. Any
2006 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app. I''m running into issues with forms however. If I use form_for the output of the form gets swallowed. For example: form_for :article, @article do |f| f.text_field :title f.check_box :published f.text_area :description f.text_field :pub_date f.text_area :content end gets rendered as an empty form
2006 May 07
2
How to handle MySQL data types SET and ENUM in the application
Hi, I wonder how I should use the SET and ENUM data types in my MySQL database combined with a rails application. This is my current _form.rhtml file for products: ------------------------------------------------------------- <%= error_messages_for ''product'' %> | <!--[form:product]--> <p><label for="product_name">Name</label><br/>
2006 Jan 22
3
Formatting input/output of a text box
Hello, What''s the best way to handle formating of a text_area? I have a text_area in my rails app where people can leave comments and I''d like to automatically convert the line breaks into <br /> tags, or just simply wrap a whole paragraph in <p></p> tags. I''m currently doing the following in my comments controller to insert line breaks when the user
2007 Sep 27
2
text_area empty_clob()
Anyone know why my text_area field is being prefilled with "empty_clob()" instead of simply being empty like I would expect? I''m using Oracle 10g so I suspect it''s coming from the oci8 driver somehow? Here''s the code: <% form_for :user do |f| -%> <%= f.text_area :notes, :rows => 2, :cols => 32 %> <% end -%> It should be just an empty
2006 Apr 12
4
Binding Text Field/Areas to Array?
Hi, If I have @answers in my Controller, which is an array of Answer model objects which don''t exist in the DB yet... How do I bind a text_area helper in the View to each Answer? (I''m pre-filling some of the Answers with other data people need to verify before submitting and will insert on POST.) I''ve been able to get the textareas to render but not with the
2006 Jul 04
1
Smart html output for an object?
Hi, I''m trying to make it so that an object can be easily printed into the html format I want. I''ve been focusing on using a case/when control structure, so let me start by showing you some code... I was trying to use this following code as a helper method, def print_question(question) @question = question case @question.question_type.code when
2007 Mar 11
0
widgEditor not showing on edit page?
I implemented widgEditor for a text_area, I use <%= text_area ''post'', ''description'', ''class''=>''widgEditor'' %> to offer a basic textarea allowing users to enter text. it shows when creating a new record, but not shows when a user clicks edit page. the edit pages just shows a plain text_area. all rhtml pages are
2007 Oct 23
0
Noob Question: Problems with FormOptionsHelpers
Hi! I have problems to see existing values in several FormOptionsHelpers.. (text_area or select for example): <% @models.each do |model| %> <% form_for "model", model, :url => { :action => :update } do |f| %> <%= f.text_field :name %> // works <%= text_area "model", "text" %> // doesn''t work... <%= select
2007 Dec 04
0
TextAreaWithStatus 1.0 released
TextAreaWithStatus 1.0 has been released http://code.google.com/p/text-area-with-status/ == Overview == This plugin is extending builtin text_area and text_area_tag helpers with the ability to display chars left up to a specified limit. Basically it turns this: <%= f.text_area :description, :onkeyup => "limit_chars(this, 100, $ (''chars_left''))"
2007 Aug 17
3
Clear text_area value onfocus
Hi! I have a "text_area" that looks like this... <%= text_area ''business'', ''otherDigitalDesc'', "cols" => 25, "rows" => 4, "value" => "Enter Description if Yes..." %> Right now, if I submit it, it adds "Enter Description if Yes" into the database. It would be nice to not have it enter
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello, Is it possible to fill the textarea content when using the text_area function ? Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2006 Apr 06
2
text_area and :value
I''m trying to use the text_area() method and would like to populate the text block with initial text. According to this: http://dev.rubyonrails.org/ticket/3752 there was a fix put in place, but I''m ont sure how to integrate this. How do I get the :value parameter to show up within the textbloc instead of the html attributes? -- Posted via http://www.ruby-forum.com/.
2013 Mar 13
2
Form_for text_area
Hi all, Since I am new to ruby on rails. I''m stuck in some minor issue. I am using form_for in my view. In that I am using a text text. So, My question is, how to add a default value to the text_area along with the row and col values. Please help me out ASAP. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2006 Jun 25
0
Colouring ''text_area'' plus scrollbar on view
Hi, I am trying to colour a text_area input field, including the scrollbar (2-dimensional field). I was able to change the colour of a button associated with a ''submit_tag'' by adding a :class and defining properties in my CSS file. Is something similar required? Thanks, Lee. ___________________________________________________________ All new Yahoo! Mail "The
2008 Jul 28
0
text_area value
Hey, I have existing threads with two fields: title and text. When a user clicks "edit", I say, in the new thread form: <% form.text_area :text, :value => params[:text] %> params[:text] = the text in the thread which the user wants to edit. It works fine most of the time, but if I made a new thread and had linebreaks, clicking edit fails. New form: text: sdfjksdfj sdfjsdf
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting buttons (bold, italics, etc., available?) In RoR I''m hoping this is very easy to pull off?!? <%= text_area ''blogentry'', ''entry'' %></p> TO <%= rich_text_area ''blogentry'', ''entry'' %></p> ??? Haven''t found
2006 Jul 26
2
text_field and date_select in collection
hello, i would like to display a collection of records on one page (e.g. an author record with all his/her books). a record contains a text_area (e.g. a description of the book) and a date_select (e.g. when the book was published). <% for @book in @author.books %> <%= text_area ''book[]'', ''note'' %> <%= datetime_select
2006 Jun 06
0
Get value from form using rjs, and problem with Safari
Hi, I have got two forms, the first is a textarea plus a link that activates some javascript to change the form, the second activates some javascript on the onchange event which changes it into a textarea form. This works in Firefox, but not in Safari. Also, I need the value which is selected. I''ve found an example that gives the parameter to the javascript, like this: <input
2006 Jan 22
0
Get colum types in auto form
Hi all, I''m trying to build a routine that generates table rows with the appropriate field types (text_area and text_field for now), and filters out the ''created_at'' and ''deleted_at''. <% for column in Project.content_columns %> <tr class="ListLine<%= cycle("0","1") %>"> <td><%=