similar to: How to use Readymade plugins?????

Displaying 20 results from an estimated 500 matches similar to: "How to use Readymade plugins?????"

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 Jun 08
5
How to find particular pattern in string?
Hi, In my application I want to find out the occurance of substring "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
2006 Jun 06
4
pls help me regarding Maths round up function.....
Hi, I have some values on my webpage displaying like 1.22333333333 2.33333344444 2.33377777777 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 --
2006 Mar 17
3
How to check for presence of particular value entered ?
Hi, I am entering value in textbox ("name") on form. Now name field 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''
2006 Mar 14
3
Can anybody tell me step by step how validate data on form?
Hi, I am new to ROR. I have created a form with foru fields in ROR. Now its working fine for all CRUD operations. But I want to validate data on form for "validates_presence_of" validation. How to do this? I tried it by putting line "validates_presence_of :description" . But its not working. Its throws error like "undefined method `each'' for
2006 May 12
2
Problem regarding accessing attributes from object...
Hi, I have an object (@cnt). Now when I am calling "@cnt.inspect" on object it gives me output as follows:- ----output---- [#"3"}>] ----------- Now in aboove output the number between double quotes (3) which is of my interest & I want to display it. How to do that? Actually this is my method:- ==================================== class Tagging < ActiveRecord::Base
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 14
6
How to provide 2 actions to a form?
Hi, I have a form in rhtml. Now I have 2 buttons indside that form. Clicking on the first button action will be ''create'' & on second button action will be ''delete''. How to do this? Thanx Prash -- Posted via http://www.ruby-forum.com/.
2006 Jun 27
2
Can''t run WEBRick with Plugin
After copying the acts_as_ferret pluin to my rails folder, I can''t boot WEBrick. Has anyone run into this before? -- Posted via http://www.ruby-forum.com/.
2006 Apr 05
6
How to Upload Image through RoR??
Hi, I have one form , in which I am using file_field teg for input image file as follows. ===== <%= file_field("store", "picture") %> ======= Tha Actual fileld name of my Image field in Database is "store_photo" with datatype LargeBLOB. & Inside my Store Model I have specified "def picture" as follows:- ========================= def
2005 Oct 27
1
InstRails FAQ: FreeRIDE
Does it help to observe that in the ..\ruby\freeride directory created by 1CI there are batch files run.bat and runw.bat that can invoke FreeRIDE for you? Waiting patiently but with ''bated breath for InstRails-pre3 Thanks for your continuing efforts - DeeJay, Leicester, UK
2006 Jan 15
1
Getting started with Ruby and FreeRIDE
I have downloaded the Ruby Windows installer, installed everything, and started FreeRIDE. The FreeRIDE documentation says: > The first thing you''ll want to do is to create a new file. Click on File > -> New: a new empty editor window named ''Untitled 1'' is created. Type the > following code in the empty editor window: > > Click on File -> Save and
2004 Nov 18
1
Forward from Laurent Julliard
Let''s try that again, without Hotmail''s crappy formatting. Dan, I am one of the developer of the FreeRIDE project (the Ruby IDE) and I''m in charge of the FreeRIDE debugger with which we have had a number of problems on Windows now mostly due to the clunky implementation of IO/Process/Signal stuff on Win32. I recently came across your Win32 utils package and
2006 Mar 27
1
Naming conventions for models on older database????
Hi, I am using RoR for my web development. But Database is already created (Older database) with its own table name without RoR Specificcations. Table names are:- blacklist_patterns category comment moderation store vote What will be names for models corresponding to my above tables? If I want to specify my own names to models? Can I do it? If yes then How? Please tell me. Thanx in advance.
2006 Mar 17
3
Best debugger for Rails on Linux
A quick survey... what''s the best gui debugging tool for Rails 1.0 on Linux that you''ve used? SW versions? Personally I''ve tried FreeRIDE 0.95 and RDT 0.7.0 in Eclipse 3.1.2. Both are very slow and the latter got quite a few bugs itself. TIA! -- 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
9
what the » ???
Im just learning trough the "geting started with ruby" i''m only on page Ruby.new and im stuck here''s the thing, I''m using FreeRIDE to duplicate the examples a = %w{ ant bee cat dog elk } a[0] ? "ant" a[3] ? "dog" for the live of me i cant seem to use Alt+0187 (?) what happen?? -- Posted via http://www.ruby-forum.com/.
2006 Mar 13
4
undefined method `validates_presence_of'' for #<ProductsContr
Hi, I am trying to use method `validates_presence_of'' for validating my input fields on form . I m using it in my action class as follows:- ======================= validates_presence_of(params[:product][:quantity]) ====================== But when I am running my application i m getting error like:- ========================= undefined method `validates_presence_of'' for
2006 Apr 25
2
undefined method `to_url'' for "This is my weblog":String
Hi, In my application I cant use "to_url" method on any of strings. What should I do if i want to use this method? Is there any plugin needed to download for this "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
2006 Jun 09
2
How to mail decrypted password to user?
Hi, I am using acts_as_athenticated plugin for my rails application. That plugin is using "SHA1" algorithm to encrypt password & 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