similar to: select(object, method, choices, options = {}, html_options = {})

Displaying 20 results from an estimated 2000 matches similar to: "select(object, method, choices, options = {}, html_options = {})"

2006 May 04
5
create databases with rake
hi, is there a way to create the database (say development and or production) specified in database.yml with rake? thanks, Enrico -- "The only thing necessary for the triumph of evil is for good men to do nothing" Edmund Burke
2005 Mar 07
3
exclude an attribute from save
Hi, I''ve used .save to save the attributes, but on my table there is an autoincrementing id (not the primary key) that doesn''t need to be inserted... but save try to INSERT it anyway... is there a way to avoid save from acting this way or to whisper him to be more polite this time? ;) Thanks, Enrico -- "The only thing necessary for the triumph of evil is for good men to do
2005 Jun 21
3
dynarch calendar problem when used with ajax
I''ve got a partial with a form using the dynarch calendar (calendar_field behavior). Working. Now I render this partial from the action specified in to a link_to_remote. Now when I click the calendar it''s not showed anymore. theese lines: <%= stylesheet_link_tag ''calendar-system.css'' %> <%= javascript_include_tag ''calendar'',
2006 May 12
4
validates_uniqueness_of with a condition
Hi, I need to check the uniqueness of an attribute (a doc number) using a condition (a specific year), I''ve found validates_uniqueness_of :number, but I need to tell it I just want to check a specific year. I''ve found :scope but I haven''t really understood it''s meaning, Can I scope on a specific year? Thanks, Enrico -- "The only thing necessary for the
2005 Mar 08
4
change the model''s table name
I need to change the name of the table a model is connected to... like the example in the API... the table is called mice and I want a class called Mouse. class Mouse < ActiveRecord::Base table_name "mice" end I''m doing this cause I want tables in my language (italian) and avoid the nameS thing. just adding it in that way doesn''t work ArgumentError in
2006 Feb 04
2
file_column path problem grouping controllers in to modules
Hey there, good job with the file_column thing, but I''m experiencing a problem I didn''t found about. I''m grouping controllers in to modules (like Admin::Category Admin:Item) and: url_for_file_column("dettaglio", "picture_url") return this search path: src="/detail/picture_url/development/5/dark.jpg" there''s a development coming from
2006 Mar 24
4
habtm: attribute on join table
How do I retrieve the value of an attribute on my join table? For example: table ''people_places'' person_id place_id disposition The first two use foreign keys and all that (I get that part). The value of ''disposition'' is what I want. -- Posted via http://www.ruby-forum.com/.
2006 Feb 10
2
file column within link_to
Hi, I correctly see: image_tag url_for_file_column("element", "picture_url", "medium") now I need to make it a link so I''ve used: <%= link_to(image_tag url_for_file_column("element", "picture_url", "medium"), {:controller => "products", :action => "sec_level", :level_id => @element.id}) unless
2006 May 04
5
How to upload only jpeg & gif & png images into public/images using rubyonrails
Hello iam new to rubyonrails. Please any one help me out in "How to upload only jpeg & gif & png images into public/images using rubyonrails" Thanks in Advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060504/33a17ad2/attachment.html
2006 Apr 20
3
how to use own classes properly
I am using rails just for few days Now i am developing traffic reports for my local network I had to build database queries manualy becouse ActiveRecord does not support selection of multiple sum() fields in silgle query Then i wrote special class QueryBuilder which makes query string from the given conditions (group by, where, additinal fields to select etc). I put QueryBuilder just after my
2006 Apr 19
2
ubuntu 5.10 postrgres gem
Hi, I''ve installed Ubuntu 5.10, with Ruby 1.8.4 with thoose rep: deb http://www-devel.orcaware.com/packages/ubuntu/ breezy/ deb-src http://www-devel.orcaware.com/packages/ubuntu/ breezy/ when I give: sudo gem install postgres I get: Attempting local installation of ''postgres'' Local gem file not found: postgres*.gem Attempting remote installation of
2005 Sep 30
2
klibc loader crash...
Hi all, I've a simple program called empty.c :) $ cat empty.c int main(int argc, char* argv[]) { return 0; } $ cat empty410.s .file "empty.c" .text .p2align 4,,15 .globl main .type main, @function main: xorl %eax, %eax ret .size main, .-main .ident "GCC: (GNU) 4.1.0 20050922 (experimental)"
2006 Jun 01
3
html_options and select()
I am trying to add html_options to select(): <%=select(:user, :id,[[''me'',1],[''myself'',2],[''and I'',3]], :select => {},:html_options => {"size" => 5, "multiple" => true})%> This does not work... How do I get the html_options to work? ActionView::Helpers::FormOptionsHelper -- Posted via
2006 Aug 18
6
Prevent user from accessing an image
Hello, I''m using file_column to save my users images. It''s all OK, but I want to prevent one user from accessing other user''s image. Is it possible, as the image is saved in the file system ?? Thanks Parra -------------- next part -------------- An HTML attachment was scrubbed... URL:
2010 Oct 06
4
List of html_options available
I''ve noticed lots of people online complain about not good documentation for Rails. I''m a PHP programmer but I''m a newbie on Rails. I''m creating a form with a drop-down menu. I finally got to do it. I noticed there is a html_options parameter for select. I was curious as to what other html_options are available but couldn''t find a list of options. I
2005 Mar 02
1
postgresql date
If I select my date column from the pgadmin I see that in the ddmmyyyy form, I''ve specified so in the postgresql config. When I query from rails I get the date in yyyymmdd someone knows why? Thanks Enrico -- "The only thing necessary for the triumph of evil is for good men to do nothing" Edmund Burke
2006 Oct 14
2
Documentation for html_options = {}
Hi, trying to locate documentation for html_options = {} as allowed in RJS calls such as link_to_remote. Can anyone point me in the right direction please? --~--~---------~--~----~------------~-------~--~----~ 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
2005 Aug 15
1
html_options for select_date
As far as I can tell, it''s not possible to use html_options in conjunction with the select_* helpers. This means using them in conjunction with observe_field etc is pretty much impossible. Does anyone have a patch to add this functionality, or know of a workaround? I''m having a look at the moment, but not sure how to get it working without breaking existing stuff. --
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 Aug 30
0
Add html_options to datetime_select?
Why can''t do so something like: :onfocus => "alert(''hey'');" For a datetime_select. I tried doing: :html => {:onfocus => "alert(''hey'')"} and :html_options => {:onfocus => "alert(''hey'')"} any ideas? Thanks. -- Posted via http://www.ruby-forum.com/.