similar to: change patial with change of the item in a select_tag

Displaying 20 results from an estimated 100 matches similar to: "change patial with change of the item in a select_tag"

2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript? RHTML is a great implementation in that it puts HTML first, and Ruby second. I would have thought RJS would be the same way: a .js with ERb helpers for generating Javascript functions. RJS putting Javascript second means: - I have to learn a whole new set of commands to use Scriptaculous. - Developers have to constantly chase the
2006 Apr 03
4
page.visual_effect :highlight not working
I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I''m in the middle of changing my Javascript code over to the Scriptaculous helper functions. page.visual_effect :highlight, "some_div" seems to be broken. Instead of fading, the background color of the element stays highlighted. page.visual_effect works for other effects, though. Any ideas? Thanks. -- Posted via
2008 Nov 22
3
RJS page.update question
How does page.update actually work? I know its a wrapper for Prototype.update but how does it get the partial in there? Say I wanted to update a div with the contents of a partial manually like this. content = render(:partial => ''whatever'') page.call "$(''my_div'').update(#{content})" But his does not work. It keeps giving me weird errors about
2006 Dec 08
19
HABTM join table quirk
I''ve been bringing up a good basica framework for applications at work. To give decent security I''ve been implementing the Rails Recipie for Authorization of function calls modeled on the book''s implementation. (Changes for our environment were added..but are minor.) Since I initially let Rails create the join table between two data tables with a HABTM relationship....I
2013 Feb 27
2
setup / configure
hi, im new to icecast and find hard time in setting up and configuring streams. it would be great if there is even detailed documentation along with use cases. the existing documentation is nice but hard for new user like me to understand what is sampling and best bit rate and so on. With Best -Ashwin. +91-9959166266 -------------- next part -------------- An HTML attachment was scrubbed...
2006 Jun 24
1
select or select_tag ?
hello PPL, I''ve seen now that the _form.rhtml generated by script/scaffold is populated by <%= text_field ''model'', ''field'' %> without _tag! but only text_field_tag is to be found in the 1.1.2 documentation.. (like in the rest of Module ActionView::Helpers::FormTagHelper there is _tag) I''ve tried to use <%= select instead of
2006 Apr 01
0
select_tag problem
Hi I have a feeds db described like this: | id | int(11) | NO | PRI | | auto_increment | | url | varchar(255) | YES | | | | | name | varchar(255) | YES | | | | | type | varchar(255) | YES | | | | | valid | int(11) | YES | | | | In my feeds view i have :
2006 Apr 19
2
select_tag and :include_blank => true not working
Guys, I''m using select_tag to display a non-model dropdown, which works fine. However, I''ve tried every which way to use the :include_blank => true option, but it simply won''t display a blank value. Using :include_blank => true with select on model fields works fine. Can someone please show me a working example? -- Posted via http://www.ruby-forum.com/.
2005 Dec 14
1
select_tag and multiple => true
I was looking at how a select tag when set to multiple = true is returned is just a comma separated list. My issue is that I would rather not add quotes around the values in the list and it is possible that my list may contain a comma. Is there a way to force either to wrap the values returned to the server in quotes or force an array to be returned as opposed to the comma separated one
2006 Oct 25
1
Help with a select_tag; getting an undefined method `stringify_keys' error
Hi, I''m trying to use a select_tag in the following manner: <%= select_tag(:received_at, @select_dates, String(params[:received_at]) ) %> But I get this error: undefined method `stringify_keys'' for "":String Removing the third parameter eliminates the error, but I was hoping that the drop-down list will select whichever string in the drop-down list matches
2010 Mar 24
0
Select_tag with options_for_select not populating DB.
I''m trying to get my animal app to let users populate info about each animal. The code below partially works. It shows the drop down menu, and it shows the names of what I wanted it to be the names of the Databases. I don''t know how to make it work so it shows the name dog and than you hit submit and it appears in the dog view. When I hit submit it just makes a new view under the
2008 Sep 02
1
seledted option for select_tag
Hi iam using select_tag i want selected_option. i have made select _tag like this <%=select_tag(''name'', options_for_select({ :Relevance =>''Relevant'',:Date=>''Recent''}),:selected=>params[:name].to_s) %> The generated html look like this <select selected="Relevant" name="name"
2009 Mar 11
1
NoMethodError for select_tag
Hello there. I am following a tutorial with rails 2.1 and I have come across a problem where <%= f.label :artist_id %><br /> <%= f.select_tag(:artist_id, options_for_select([[''choose one'', '''']] + @artists.collect {|art| [art.name, art.id]}, @album.artist_id)) %> (Old artist info:<%= @album.artist_old%>) gives undefined method
2008 Dec 13
0
select_tag and select_date how to change inline font
I have been trying to change the font size in the select_date but i haven''t had any luck here''s what i did: <%= select_date( Date.today, :prefix => ''prom_date_end'', :order => [ :day,:month, :year], :html => {:style => "font-size: xx-small;"}) %> --~--~---------~--~----~------------~-------~--~----~ You received this message because
2008 Jan 03
1
Help using options_for_select in select_tag
<b>Client</b><br /> <%= select_tag ''clients[]'', options_for_select( [['' '',''1''], [''aaaa'',''2''],
2008 May 30
1
Parameters for FormOptionsHelper select vs. FormTagHelper select_tag
I must be missing something when it comes to the parameter differences between form FormOptionsHelper select and FormTagHelper select_tag. Code that follows, works perfectly - <%= f.select :unit, units_to_select(@product), :size=>"20"%> The following code, does not. The helper function never even seems to be called. <%= select_tag "unit",
2005 Nov 22
3
non model select_tag problem
What am I doing wrong here: select_tag(''website_ids[]'', options_from_collection_for_select(Website.find_all, ''id'', ''name'', params[:website_ids]), {:multiple => true, :size => 5}) It works fine except that it does not display the selected options once the form is submitted (it submits to the same page). The
2008 Mar 06
0
Collapsable/expandable select_tag helper for trees?
I''ve been looking around for a select helper that works like the Windows Explorer ''folder'' pane, ie for navigating a tree: a node with children has a plus icon which expands the node to show its children when clicked on, and which then turns to a minus icon which collapses the node, etc. I can''t seem to find one, can anyone point me to one please? -- Posted
2010 Dec 22
1
'No route matches' error with select_tag
Rails 3: I have a view books/:id/show.html.erb - in the view, I have a form with a select tag to pick a template, that on dropdown should submit the form which rerenders the page based on the selection: <%= form_tag book_path(@book) do %> > > <%= select_tag "template[]", >> options_for_select([["Template1","template1"], ["Template2",
2008 Apr 24
2
select_tag and link_to
Does ROR allow passing the chosen value from a drop down using select_tag into link_to ? Basically I want to do something like: <%= select_tag( "name", options_for_select(%w{John Doe Jane })) %> <%= link_to "Delete", { :controller => "myname", :action => "add", :id => name },