search for: teotti

Displaying 18 results from an estimated 18 matches for "teotti".

Did you mean: eoti
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
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 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'',
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 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 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 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
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
2005 Feb 15
5
date_select where to add "class"=>"something"
Hi, I''ve looked on api.rubyonrails.org but I''ve not found how to add to a date_select(object, method, options = {}) a class option to set the class of all the select tags. I''ve tried using "class" => "myclass" in thoose ways: <%= date_select("costo", "data", "class" => "testo" ) %> <%=
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 Jan 09
6
Nil column results, possible to ignore?
For a table "clients" there are city, state, and zip fields. However, for some clients we only have a state with no actual address. The following code throws a "You have a nil object" error when outputting my client list. Is there a way around this, short of writing a specific case for each possibility? &lt;%= client.city + '', '' + client.state +
2006 Jun 28
9
Scaffold Issue with Postgres
Hi guys, I''ve been able to successfully install the postgres adapter for a remote database machine to get rails up. My machine is running on Fedora 2. Rails version 1.1.2. Is my yml config correct? I am getting this error when I execute script/generate scaffold service_contents content : exists app/controllers/ exists app/helpers/ create app/views/spiel exists
2006 Jul 04
1
select(object, method, choices, options = {}, html_options = {})
Hi, I''m using: select(object, method, choices, options = {}, html_options = {}) I''ve read the API where there''s this example: select("post", "person_id", Person.find_all.collect {|p| [ p.name, p.id ] }, { :include_blank => true }) should give this code: <select name="post[person_id]"> <option></option>
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 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">
2004 Jul 23
0
problem exploring network from win98
Hi, if I logon in the domain (samba3 acting as PDC on debian stable) from a win2kp client (netbios name manually added to the server) with user A, I see H: in "My computer" it's the user home on the samba server. When I go in network resources there are the domain PCs. Same procedure but from the win98 client, I don't see H (is the only way I0ve find is to write net use h:
2006 Nov 04
0
PostgreSQL ActiveRecord default localized date assigned in test env
Hi, today I''ve configured an XUbuntu as workstation (ok I know...). Using the following packages to make Rails interact with Postgres: ii libpgsql-ruby1.8 0.7.1-7 ii postgresql-8.1 8.1.4-0ubuntu1 using rails 1.1.6 from gems. The problem came up just on the testing environment, when I save a model I get a: ActiveRecord::StatementInvalid: