search for: prash

Displaying 20 results from an estimated 39 matches for "prash".

Did you mean: crash
2006 Mar 14
3
Can anybody tell me step by step how validate data on form?
...#39;' for nil:NilClass" Also what is ":description" in the "validates_presence_of :description" ? Is it a database column name or name of the field (textbox) on my form that is responsible for holding value of description field? Please help me. Thanks in advaance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 06
4
pls help me regarding Maths round up function.....
...77777 etc. Here I want to display values upto 2 decimal places correct. i.e, 1.22333333333 should be dislayed as 1.22 2.33333344444 should be dislayed as 2.33 2.33777777777 should be dislayed as 2.34 & so on.... How to do this in ruby????? Is there any function??? Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 May 08
4
How to disable textbox in Ruby?
Hi, I want to disable textbox in my page so that user can not modify its contents. How can we do that in ruby? Thanx, Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
4
undefined method `validates_presence_of'' for #<ProductsContr
...========================= What is problem here?? Also I want to validate the field on my form (quantity) for its value less than 10. if value entared in quantity field in my form is less than 10 then it should check it & should give validation message on my view. How to do this???? Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 May 12
2
Problem regarding accessing attributes from object...
...''food'')" ]) end end ==================================== Now this is code in my view:- @cnt=@cnt=Tagging.find_count_of_tag(''food'') Now how to get the value of count which is returned by method with SQL ?? PLease help me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Apr 25
2
undefined method `to_url'' for "This is my weblog":String
...;to_url". In my application now when I am trying to use this methos I am getting following error:- ======================================== undefined method `to_url'' for "This is my weblog":String ======================================== PLease tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
2
How to mail decrypted password to user?
...word & stroe it into database. Now in future suppose user requsted his password through email, hhow should I decrypt that password in my application & for sending it through mail? Please help me. I am trying this since last 2 days. But still not succeeded. Thanx in advance for ur help. Prash -- Posted via http://www.ruby-forum.com/.
2006 May 08
7
How to get difference between two dates in days???
Hi, I want to calculate difference between Current date & previous date (stored in database). The difference should be in days. Hhow to do that?? PLs tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
3
How to check for presence of particular value entered ?
...in database is having ''unique'' constraint on it so that no 2 records with same name allowed in database. Now when I m trying to enter same name into database from my form I m getting following error. ================================ Mysql::Error: #23000Duplicate entry ''Prashant'' for key 2: INSERT INTO users (`name`, `password`) VALUES(''Prashant'', ''Twiari'') ================================ Instead of this error I want the Proper message should be displayed on same page ("Form page") with name textbox highlighted....
2006 Jul 31
1
How to get result of following SQL Query in Ruby?
...#39;'%1%'')) ;" I am able to get proper result using this sql query. But how should i write same in query ruby inside my controller/model of tags table? i.e Tag.find(:all, :conditions=>...... What will be conditions in above ruby statement? Please tell me ? Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 May 08
3
How to get count of records from database?
Hi, I want to display count of all records with particular field value from database onto my view. How should I do that? PLs tell me. Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 May 19
1
How to upload text files or csv files in ruby??
Hi, I want to upload text file & csv file to server through my rails application. How to do that? PLease tell me if any plugin available for that? If not then how to upload files?? Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 10
2
Syntax for <input type=hidden> in rhtml????
...in form inside RHTML file. I knonw the syntax for text box (<%= text_field ''product_item'',''product_id'', :value=>product.id%>) But I don''t know syntax for hidden field(like <input type=hidden> in HTML). Please tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
2
How to specify default action for particulr actioncontroller
HI, How to specify default action for particular actioncontroller? Currently when I m typing the URL as "http:\\localhost:3000\actioncontroller_name" , then I m getting the default actin page as list.rHtml. But instead I want my action page to be index.rHtml. How to do it? Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
1
How to retrieve attribute values of objects?????
...============== undefined method `name'' for #<Array:0x3bcb720> ========================== Why I m getting this error? & what should I write with "print" method in above code to get value of name attribute associated with "@product1" object? Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
2
How to use Readymade plugins?????
...I m using method associated with that pluin "validates_equality_of " into my model, it is giving me error like "undefined method `validates_equality_of'' for User:Class". Where is the problem??? & where & how should should use downloaded plugins??????? Thanx. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 27
1
Naming Convemtion for Model????
Hi, In My database there is a table called "categories". Now what name should I specify for my model as per ruby naming convention? Is it "Category"??? Also is it possible to keep database table name singular instead of plural? Please tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Mar 17
1
How to update values in database in this form?
...to cart'' button on my form I get error as:- ======================================================= undefined method `product_id2='' for #<Product:0x3c98b30> ======================================================= Why this error is coming? Please tell me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 08
5
How to find particular pattern in string?
..."http:\\" in the main string "http:\\www.abc.com" Here how to find out whether substring "http:\\" is present in my String? & if substring "http:\\" is present then I want to delete it from main string. How to do this? PLs help me. Thanx in advance. Prash -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
6
How to Upload Image through RoR??
...method `read'' for "logo.gif":String ====================================== Why I am getting this error? PLease tell me how to upload file into my database from a form & also if later I want to retrieve that image from database & display it on page how to do it? Thanx. Prash -- Posted via http://www.ruby-forum.com/.