[Rails] Re: how to handle error message when condition break both presence and numerical validation ?

2013-01-16 Thread Priya D.
Try giving the following. validates :age, :numericality => true, :allow_nil => true This validation will not be invoked if the age is not present. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" grou

[Rails] Re: showing error (gsub) when switching from session to cookies

2012-04-25 Thread Priya D.
Can you pls provide your controller with line number? -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from

[Rails] Re: rails initialization process description.

2011-12-22 Thread Priya D.
Hi Dani, Pls refer the below link. You can get deep idea about initialization process. http://railsguts.com/initialization.html Thanks, Priya Dani Dani wrote in post #1037477: > Hi, > Is there any document out there describing, not in depth, the > initialization process of a rails application

[Rails] Re: ROR Development Assignments at Pune

2011-10-11 Thread Priya D.
Hi Norbert, Please check the following link for detailed error. http://www.ruby-forum.com/topic/2762446#new Its working fine in browser.. Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro

[Rails] Apache Benchmark

2011-10-11 Thread Priya D.
Hi All, Am using ab(Apache Benchmark) for load test in my rails app. ab -n10 -c10 -p ~/post_data_ab.txt -T "multipart/form-data; boundary=1234567" http://localhost:3000/albums I have used the above command for testing upload photos. But am getting the following error. [2011-10-11 11:38:38] ERRO

[Rails] Re: gem yank - not working

2011-01-31 Thread Priya D.
Hi, I got the command works. We need to install "gemcutter". This will add "yank" to the list of gem commands. Then, we can use "gem yank gem_name -v version". It works. Thanks, Priya -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the G

[Rails] gem yank - not working

2011-01-31 Thread Priya D.
Hi All, I have distributes a gem. Now i want to remove it from the distribution. So i have used "gem yank gemname -v version". But i'm getting the following error. ERROR: While executing gem ... (RuntimeError) Unknown command yank The command "gem help commands" gives the following list, wh

[Rails] Re: Re: Re: Re: Re: how to create console application

2011-01-27 Thread Priya D.
Colin Law wrote in post #977860: > On 27 January 2011 11:04, Priya D. wrote: >> Am using Ubuntu 10.04. Just using irb. > > Please don't top post, it makes it difficult to follow the thread, > insert your reply into the previous post, thanks. > > So to open a console y

[Rails] Re: Re: Re: Re: how to create console application

2011-01-27 Thread Priya D.
Am using Ubuntu 10.04. Just using irb. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, sen

[Rails] Re: Re: Re: how to create console application

2011-01-27 Thread Priya D.
No Colin, i don't want to execute system commands. For eg, 1) I'm requiring a gem in console.(require "somegem") 2) I'll create object of the gem. (@obj = Module::Class.new) 3) Using the created object, i'll access the methods in the gem. (@obj.get_details()) In the above mentioned steps, while

[Rails] Re: Re: how to create console application

2011-01-27 Thread Priya D.
I'm creating a new object for a class using irb. At that time, if the object is created successfully, a new console should be open. The newly opened console should act as the created object. so that i can execute all the instance methods through the newly opened console, without prefixing objec

[Rails] Re: how to create console application

2011-01-27 Thread Priya D.
I want to create a new console using ruby code. From the new console, i'll execute my commands. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-

[Rails] selenium commands to selense script

2011-01-26 Thread Priya D.
Hi All, I'm using selenium-client gem for testing. I need to convert the commands which i have used into selense script. Please find the below example for clear understanding. Eg:- @browser = Selenium::Client::Driver.new(:host=>"localhost", :port=>"",:browser=>"*firefox", :timeout_in_second=>

[Rails] how to create console application

2011-01-26 Thread Priya D.
Hi All, I want to create a console application using ruby. Can you please provide me the details/idea? Lots of thanks, Priya -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gro

[Rails] Re: Juggernaut command not found

2010-12-19 Thread Priya D.
@ Tim: As i mentioned in my first post, i'm getting juggernaut command not found error only. I didn't get any log. @ Kannav: Ya, the gem is available in config/environment.rb file. Its Rails 2.3.5. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscr

[Rails] Re: Re: Re: view data in single line

2010-12-13 Thread Priya D.
Hi Guys, Actually there is some attributes common to both the hashes, using that common attribute, i'm displaying the results. It works for me. Thank you very much for your help. Thanks & Regards, Priya -- Posted via http://www.ruby-forum.com/. -- You received this message because you are s

[Rails] Juggernaut command not found

2010-12-13 Thread Priya D.
Hi, While i'm trying to execute the following command, i'm getting command not found error. juggernaut -g juggernaut.yml (This is used to configure the gem.) My Rails Version is 2.3.5 Juggernaut version is 2.0.0 Please help me. Thanks in advance. Thanks, Priya -- Posted via http://www.ruby-f