similar to: Select multiple question

Displaying 20 results from an estimated 2000 matches similar to: "Select multiple question"

2006 Jan 21
19
RoR - Mac OS 10.4.4 on Intel
I got a new 20 inch iMac dual core today and am busy getting it all setup. A couple of issues though: 1. Is the Ruby 1.8.2 install by Apple still botched or has that been fixed? I recall someone had fixed the rbconfig.rb to get it working. Is this something I still have to do? 2. Does anyone know if Locomotive is using the uniersal binaries, or is it targetting PPC yet? I couldn''t
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
2006 Jan 04
7
<% if ... -%> What is this?
I seen some RoR code that went like this: <% if ...blah, blah... -%> .. blah, blah <% end -%> What are the minus signs for in the if statement? Cannot seem to find anything about this, and searching on "-" in this context is hard to get anything meaningfull back. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2005 Aug 07
11
HABTM Movable Select Box
Hi, I found it a while ago, an add-on to Rails for supporting movable select boxes, but I searched through the wiki and the mailing list and couldnt find what I was looking for. I was hoping someone might know of or remember something about the project. Thanks, Dylan.
2006 Feb 01
5
lighttpd not starting on os X (intel)
Hi all, I''m followed the instructions written here to prepare my new iMac for Ruby / Rails developement: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger When I run script/server I get the following output: harm-de-laats-computer:~/rails/test harmdelaat$ script/server => Booting lighttpd (use ''script/server webrick'' to force WEBrick) =>
2000 Jan 04
0
two-level getgrent bug in samba-2.0.6 (PATCH#11)
leon@eatworms.swmed.edu wrote: > > I ran into a bug in samba-2.0.6: an infinite loop caused by two-level > getgrent calls. validate_group, in the middle of a getgrent loop, may > indirectly call user_in_group_list, which resets getgrent. As a result, > validate_group never exits. The attached patch works around this. It's a > quick and dirty patch which I'm including
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>
2006 Feb 19
8
require ''digest/md5'' not working on Mac or Windows
I''ve tried the following line in ruby script/console require ''digest/md5'' Both my Mac (Intel iMac) and my Windows box return "false"... Any ideas what could be wrong? I was trying to do the RoR Recipe on page 54 of Chad Fowler''s new (beta) book. -Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 31
1
Custom Classes?
Ok, a bit of a possibly dumb question here. When working on Rails apps and I want to add a few custom class rb files to the project, where exactly should I put them? What folder is the best to place them in that things in the model and controller folder can see and use them? Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2005 Dec 21
3
How to make a drop-down automatically submit an AJAX form
Hi, I know that to make a dropdown box automatically submit when you change the value, you do this: <select ..... onchange="this.form.submit();"> BUT i''ve got an ajax form, and if i do the above trick, it simply reloads the ajax partial into the whole screen, rather than into the div where it is meant to go. I''ve already got it all working so that if you click
2011 May 17
0
Select not maintaining state on nested form with
I am using nested forms with multiple instances of various of the forms. The problem I cant figure out is how to maintain state for the select between postbacks. I am using ''options_from_collection_for_select'' and in this the last param is to be the selected value, but given the dynamic nature, the value is going to depend on the iteration of the form builder. If I manually force
2005 Mar 07
0
an escape from using find_all
Hi, I''ve got a form where I change and update the @cost values, I wanted to see a select tag showing all the clients names instead of inserting manually the code in the textbox... to do so I''ve used options_from_collection_for_select on another var @client (setted to find_all on the controller calling this viewer). <select name="client">
2006 Jan 08
3
Getting the current Action in the Model
Is it possible to get the current Controller''s action from within the Model? I have a situation where I want a piece of validation to run on edits, but not on new creates. Thanks, - Mark -- Posted via http://www.ruby-forum.com/.
2006 Feb 02
0
Validation fails with select option list
I have a form with some text_field and some drop down lists. <input id="student_fname" name="student[fname]" size="20" value="" type="text"> <input id="student_mname" name="student[mname]" size="20" value="" type="text"> <input id="student_lname"
2005 Jun 02
1
Populating Data on a Foreign Table
the scenario... three tables, thusly: widgets ------- id widget_color_id widget_style_id widget_colors ------------- id color widget_style ------------ id style the data: widgets ------- 1 2 1 2 1 3 3 3 2 widget_colors ------------- 1 blue 2 red 3 green widget_styles ------------- 1 smooth 2 round 3 broken so, putting the associations together, we have in widgets: 1 red smooth 2 blue
2005 Dec 16
5
Question: image_tag(source, options = {})
image_tag(source, options = {}) Ok, when I want to use an image I added the following code: <%= image_tag "dsf.jpg" options = {[align="right", style="padding-right: 10px; padding-top: 5px;"]} %> However, this doesn''t seem to work, it doesn''t like how I have the "options" part setup. I''m sure there is something very easy
2006 Jan 09
4
How to carry parameters to a new page?
Hello, I have a page where user can register him/herself to the site. If the user enters something wrong, or leaves blank textboxes, I want to reload the page and tell the user what went wrong. Also the textbox-values the user already entered, should be kept in the textboxes. For example, in my user-controller: if @username.length == 0 redirect_to :action =>
2005 Dec 17
2
Encrypting files
Anyone know of a good (fast) way to encrypt/decrypt uploaded files in RoR? I''ve seen this project: http://ezcrypto.rubyforge.org/ but it only seems to encrypt strings and such. I need to encrypt files once they are uploaded, then decrypt them when they request the file back. Any ideas? Thanks, Mark -- Posted via http://www.ruby-forum.com/.
2006 Jul 02
0
Problem with select, options_from_collection_for_select for selected items
I''m having problems to make the selected works, i''ve been trying with select and options_from_collection_for_select. I''ve tried, :selected, :selected_key, :selected_value, and all i can got from the doc page ( http://rubyonrails.org/api/classes/ActionView/Helpers/FormOptionsHelper.html#M000399 ) and from wiki. Code: select(''informacao'',
2007 Sep 01
2
Getting JSON from the body of a POST
I have a Flash application that is sending JSON data to a Rails app. I want to be able to read the JSON from the controller. Does anyone know where I can go to figure this out? I''ve Google''d around but can only find instances of converting to JSON, not the other way. Example: Flash -> Sends JSON -> Rails Controller receives JSON and converts it to a class -- Posted