search for: medda

Displaying 15 results from an estimated 15 matches for "medda".

Did you mean: medida
2006 Mar 01
7
Oracle Sequence & Rails
the compiler tell me it: invalid column name: INSERT INTO ago.prova_stats (cognome, nome, id, telefono) VALUES(''Medda'', ''Ivan'', :id, 70565611) where ago.prova_stats is the table used by me and that have only the columns ''cognome'',''nome'' and ''telefono''. My table hasn''t the column ''id''(???).Why Rails search...
2006 Mar 01
2
Oracle auto_increment ??? & Rails
To make a new istance of an Oracle table with Rails, i need that this table had a column named ''id''. This ''id'' must be Primary Key & auto_increment;. How Can I modify the ''id'' properties to do it Auto_increment in Oracle? -- Posted via http://www.ruby-forum.com/.
2006 Feb 20
2
Oracle & Ruby on Rails
I''ve a remote database create using Oracle. This database use schemas. I tried to connect to it using Ruby On Rails,with this file Database.yml : development: adapter: oci host: liber database: ENERGIA username: user password: pass test: adapter: oci host: liber database: ENERGIA username: user password: pass production: adapter: oci host: liber database:
2006 Mar 27
3
Specify a controller action via attribute in INPUT tag?
I have a pre-existing form with one existing "SUBMIT" tag generated by <%= submit_tag %> I would like to add another <INPUT type="submit" ...> to my form. How do I successfully associate that <INPUT> tag with a different controller action than the default one specified by my <%= start_form_tag %>? Or does this approach even make sense? In RoR, is
2006 Mar 27
5
Fake ActiveRecord model?
Hi all, I have a legacy table which I cannot get to work with ActiveRecord (no ids etc). All I want is to create a class which opens a connection manually and allows me to execute some plain SQL statements. What I can''t figure out is how to either build up a connection and execute queries from a non-AR inherited class, or how to create a AR-inherited class minus all the AR magic and
2006 Apr 03
1
attribute select problem
Hi, I''m searching a metod to do a selection suck as: Select attribute1,attribute2 from table where conditions I know that the "find()" and "find_by_sql" methods takes all the attribute...But i want only attribute1 and attribute2...Can someone tell me if there''s a method that give me this opportunity? Thanks,Ivan. -- Posted via
2006 Mar 01
4
Oracle Bug
I''m using 2 database. The first wrote in MySQL and the second in Oracle. If i use the command "SET_TABLE_NAME" to forge the model to use another table, there isn''t no error with MySQL, while with Oracle if i ask the view "_Form.rhtml" The compiler tell me "No sequence in SELECT TableName_seq.nextval id from dual"(???). Could someone tell me where
2006 Mar 02
1
Insert a data in Oracle with Rails
Hi, I tried many things to insert a data in an Oracle Table, but the Rails compiler never Works! I create this Oracle table: CREATE TABLE "FOO" ( "id" int NOT NULL primary key, "acolumn" VARCHAR(10) NULL ) and when i tried to insert a new row the Rails compiler tell me : OCIError: ORA-00904: invalid column name: INSERT INTO AGO.FOO (acolumn, id)
2006 Mar 24
1
Radio Button Tag and hash @Params.
Hi, I''ve a little problem using the Radio Button Tag. I use the " @prove=MODEL.column_names() " to keep attribute names of a table. After i used this code to select a attribute subsets of them : <% i=''0''%> <% for @obj in @prove %> <% @key='':key''+i%> <%= radio_button_tag (@key,@obj) %> <%
2006 Mar 24
2
check_box_tag
hi, What''s the right way to use the CHECK_BOX_TAG? I used: <% for @pippo in @model %> <%= check_box_tag (:scelta,@pippo) %> <% end %> How Can I control if a person choosen the second or third element of the vector @pippo? -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
1
rescue value
Do you know if exist a method to rescue the variable value pass to a page .rhtml? Something sucj as "_GET" in PHP? -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
1
Get in RoR!
How can i rescue the variable value pass with a get method? thanks, Ivan. -- Posted via http://www.ruby-forum.com/.
2006 Feb 27
2
submit_tag
How can i use the submit_tag method (from: actionView::FormTagHelper) to create various submit buttons and chose the right action in accord to the button that i pushed? -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
0
how the check_box_tag works?
I don''t understand the right functionally of the Check_box_tag!. def check_box_tag(name, value = "1", checked = false, options = {}) can i put as value, the attribute names of a my model? I would select some model attribute to work. -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
0
Cross model''s data
Hi, Can someone tell me if there''s a rails class or package thar give me the possibility to cross the model''s data between? Thanks, Ivan. -- Posted via http://www.ruby-forum.com/.