similar to: parameters

Displaying 20 results from an estimated 30000 matches similar to: "parameters"

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
2006 Aug 29
1
Scope problem with form_remote_tag, ajax?
Hi all, I have tracked an odd behavior down to what I think is an issue of scope. In short, when I use form_remote_tag to establish an AJAX form, my database fields don''t get populated when performing an edit on the record. Those same fields will get populated using start_form_tag and no AJAX. I think that Ruby can''t find the local object that represents the database
2006 Oct 14
2
sending parameters with link_to_remote Ajax Request
In a panel, I have an hidden input field which is modified by a javascript function (from calendar) how can I sent the value of this input field in my link_to_remote call ? presently I just send back one parameter (an id) but I need both... <input type="hidden" name="booking[start_at]" id="f_date_s" value="booking[start_at]" /> ... <%=
2006 Aug 24
1
link_to_remote parameters - help
I''m trying to show a preview of the comments, and I''m saving the comments through AJAX. So, I thought that I should be able to mimic the "comments" action for the "comments_preview" action very easily. So far, this isn''t the case. I have a link_to_remote tag inside of the form tag, and I don''t know how to send the parameters that are
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 Apr 12
1
link_to_remote with form values?
Hi, I need a way to read a form field and pass its contents as a parameter to a link_to_remote call. So let''s say I have a textarea input: <%= text_area ''course'', ''topics'', :rows => 6, :cols => 60 %> and later a link_to_remote: <%= link_to_remote("Hide", { :update => ''my div'',
2006 Apr 21
3
rjs in multiple ajax page
Sorry for the long explanation but I''m having trouble integrating rjs into my form page. Here''s my page: <div id="posts"> <ul id="post_list"><%= render :partial => ''list_results'', :collection => @posts %></ul> <p><%= link_to_remote(''+'', :url => {:action =>
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 Jul 31
4
Text field not being submitted via form_remote_tag; works via form_tag
Hi everyone, Newbie here. I''m trying to get a textual form element to submit in the context of a form_remote_tag block and having little success. Oddly (or perhaps not), using regular old form_tag in its place does cause the elements to be submitted. Here''s the relevant partial ERb code: <%= form_remote_tag( { :url => { :action => :out, :id => pending_task } } )
2006 May 30
4
Hide parent element
I have some code that calls a partial to display one or more blocks within a div tag. I want to have a close button (or cancel link) that will fade that block but leave the others. Here is the code: LINK: <%= link_to_remote "Add Miscellaneous Link", :url => { :action => :add_iyc_link } %> add_iyc_link.rjs: page.insert_html :bottom, ''links'', :partial
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be. In my view at the top I have this init calls <script type="text/javascript" > tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); </script> Then in my form: <%= text_area
2006 Apr 23
5
Newbie Ajaxy Question
Hi all, I''ve been trying to figure this out by myself and while I feel I''ve made some progress, I feel kind of stuck. Let me see if I can explain what I''m trying to do. I have a very simple form with a text box and a text area. The text in each of these will eventually make it into a row in a table in my database. For now, the value in the text box represents a
2007 May 10
2
link_to_remote fix, should this be added to edge rails?
After looking at the link_to_remote tag for the first time, I found it broke when javascript was disabled. Below is one possible solution I found and would like to suggest that this idea is promoted into rails. # # provide fix for link_to_remote tag when javascript is not enabled def link_to_remote_fix(text, options) link_to_remote text, options, :href => url_for(
2007 Aug 21
2
in place editor with scriptaculous
I have an issue with line break handling. When I display contents of a textarea, I use nl2br to show linebreaks that the user has made. The problem comes the second time they make an edit, since the <br> code still appears in the inPlaceEdit box... which will no doubt confuse my users... Any way around this? --~--~---------~--~----~------------~-------~--~----~ You received this message
2006 Aug 17
2
link_to_remote question
I''m using link_to_remote to call a method that deletes an item <%= link_to_remote " [delete]", :url => { :controller => ''user_admin'', :action => ''employee_type_delete'', :id => employee_type.id }
2008 Feb 01
4
Help with link_to_remote
Hi!. Is there a way to call to another controller with link_to_remote? Something like this: <%= link_to_remote "Tests", { :controller => "tests", :action => "tester" } %> Salu2... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
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
2007 Nov 20
4
link_to_remote style
I am trying to use link_to_remote to update a div tag with some content. This part works fine. The thing I am having an issue with is that I am trying to format this link with a ''class'' tag and it is being ignored. Can anyone shed some light on this? I have tried brackets in different places with different options and tried other variations with no luck. I am guessing my
2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi anybody plz help me how can i use link_to_remote with in form_for.. i tried but no luck... if i use form_tag i can able to use link_to_remote and made ajax call.but i need to use form_for ....can anyone help me how can i do with this.Thanks in advance. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 Apr 14
2
Nested AJAX remote_form in form?
I''d like to achieve something that is better described by the following code: <%= start_form_tag :action => ''create'' %> <%= text_area ''place'', ''description'', :cols => 100, :rows => 4 %> <div id="categories"> <%= form_remote_tag :update => ''categories'',