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
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
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
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
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
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
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
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
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
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
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
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-
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=>
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
@ 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
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
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
17 matches
Mail list logo