similar to: Creating an array of params

Displaying 20 results from an estimated 9000 matches similar to: "Creating an array of params"

2006 Mar 31
4
I feel stupid - help with Element.show
This isn''t Rails-specific, and I''m sorry for that, but I haven''t been able to get a response in the #prototype/#javascript/#ror channels, nor find anything via Google. I have a form element that I want to be hidden when the page first loads, and appear when a user clicks the link. Here''s the code: <div id=''signin-link''><%= link_to
2006 Jul 30
1
Insert multiple new child records with the parent
Hello, I am implementing a classic invoice application. On the create new invoice page I want to allow users to add new line items using AJAX: ----------------------------------------------------------------------------- Invoice Date [ ] Client [ ] Line Items 1. [ ] $[ ] <add new line item> <save> <cancel>
2006 Jul 06
1
How did I turn off params ?
I am trying to create an input form where subsets of the input data goes into separate rows of the table (events). I have created a proxy object (CompoundEvent) to hold all of the data, and overridden its "save" method to create the several tuples. This was almost working late last night when I did something that stopped the params[] hash from getting any information from the post
2007 Sep 04
7
Rake tasks getting in the way of edge (uses gem instead)
So I''d been running gem releases of rspec for the past several months, and I installed edge rspec so that I can use Story Runner. I''m running into a problem because I''ve got a couple rake tasks that reference "spec/rake/raketask". If I try to run "rake spec" then it pulls in the gem version instead of the plugin version. rake blows up saying that
2006 May 10
3
text_field_tag options
Hi all, can someone explain to me how the options for helper text_field_tag supposed to be written. I really tried a bunch of stuff without success. For example I need a field with id "query", so I write <%= text_field_tag :query %> which works fine. But what if I want the field only 5 characters big? I tried among other <%= text_field_tag :query ,
2008 Jan 25
2
form formatting
If I want to use fbml elements and rails tags, is there a way to do within a fb:editor? if I do: <% facebook_form_for(:task, at task,:url => create_task_path) do |f| %> Assign Task To: <%= fb_friend_selector %> <%=f.text_field :ttype, :label=> "Title"%> <%=text_field_tag :newrnumdays, ndays, :label => "# Days"%>
2006 May 19
1
pass text_field to controller when using periodically_call_r
Hi. Can anyone help with this? In a view, I have a text_field_tag( :mytextfield ). I would like to pass the current value of that text_field_tag to a periodically_call_remote - something like periodically_call_remote( :url => { :action => :do_it, :thetextval => :mytextfield.value } ) - Any idea how can I pass and/or access the value of the text_field_tag in my do_it controller?
2008 Feb 20
1
text_field_tag - different parameter name
Hi, I have one problem with validation I am creating e-shop and I have products. This view look like this: <% for product in @category.products %> <div class="produktyBox"> <%= product.title %><br /> Price: <br /> <div style="color:red; font-size:large; font-weight:bold; margin- bottom:5px"><%=
2009 Feb 24
1
How do I clear values from text_field_tag after browser refresh????
Hi all, I''m having an issue with text_field_tag. I want to reset the value of the text_field when I refresh my browser, seems like a very simple thing, however I''m having hard time finding the answer. After I input some values, how do i reset the value to nil or empty?? my code is below <%= text_field_tag ''login'', @login, :class =>
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code to follow). I have a form to create a new book. This book can have many authors and I wanted to be able to add the authors based on if they appear in the authors table. I originally was going about it a long and arduous way where I had several forms. After thinking about it I decided to dynamically add new fields to
2009 Apr 17
2
how to call javascript function in text_field_tag
Dear all Sorry for dummy question. How can I convert a text input in form to upper case letter in view? Can I call the javascript function toUpperCase() in text_field_tag?? <%= text_field_tag(:sometext, nil, :size => 14) %> I know I can achieve this using params[:sometext].upcase in controller, but I want to do this in view. Any ideas? Many thanks Valentino -- Posted via
2006 Apr 17
2
Refreshing RHTML page with previously posted data?
All, After a POST, I want to be able to redisplay a view with the data that was previously entered when my controller action notices a validation failure and calls render on the view that does the submit. Example: View x.rhtml - text field is filled in Call controller action Controller action fails validation calls render (:action => ''x'') x.rthml shows up with blank text
2009 Mar 12
4
How can I append a text_field_tag to a form_for?
Hello people, how can I append a text_field_tag to a form_for? When I submit the form all text_field_tags are not being appended to the params... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2006 Mar 08
3
List and update values from text_field_tag fields
Hi, I populate a couple of text_field_tag''s with data from an AciveRecord object. Some fields are editable and at the end of the page there''s a submit button. I want the new values to be updated in the DB but by default my original values are stored again. How do i go about doing this? thanks/jens AIM: jens.tinfors@mac.com Skype: jtinfors
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
2007 Aug 03
2
Does collection_select work in list.rhtml?
Hi, I have 2 models: Model 1: er, Columns: <er_id, er_name> Model 2: er_process, Columns: <er_id, er_process_name> er_id is a foreign key for Model 2. When I am creating a new er_process or editing an existing one, I have been successful to use collection_select to show the available er''s so that the user can select a particular er by its name (to populate the er_id
2005 Aug 15
2
Newbie rendering problem
Hi On every list request i render an item partial through a collection of items. the item table has 3 columns namely name,anotherName and id. the item partial looks like <%@item=item%> <%= error_messages_for(:item) %> <tr id="<%=item.id%>"> <% for column in Item.content_columns %> <td><%=h item.send(column.name) %></td> <%
2008 Jul 13
4
How to justify text in text_field_tag
I would like to have the text in a text_field_tag right justified instead of left justified. Is there a way to do this? Thanks, Alex -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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
2006 Apr 28
1
beginner - default form values
I want to build a simple calculator with 1 form and a results page. The form will be redisplayed with an error message upon an invalid value entered. I won''t be using any database/active record for this. The problem i have is when i return to the form page i want to redisplay the values already entered in the form fields. Should i use text_field (which seems to be tied to a model) or
2006 Apr 18
6
Help with Forms
Hello, Ive been trying to sort out this problem for a couple of days now. Here''s my problem: Im builing an ajax form that has a repetitive sequence of similar form elements (tracking_id). <%= text_field "asset", "tracking_id", "index" => i, "class" => "case" %> <%= text_field "asset", "tracking_id",