[Rails] Re: Quick question about AR arrays.

2014-07-01 Thread manoj c.
Samson Oak wrote in post #1151218: > Oops, I meant Foo.all.each {|foo| foo.bar } for the second one. Yes, second one should work as your method is a instance method Thanks. Manoj Menon, -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Goo

[Rails] Re: Re: Select_tag query

2013-02-07 Thread manoj c.
manoj c. wrote in post #1094553: > Colin Law wrote in post #1094550: >> On 31 January 2013 11:56, manoj c. wrote: >>> yes i meant select_tag only like below example >>> <%=select_tag "people", "David".html_safe%> >>> >>>

[Rails] Re: Re: Select_tag query

2013-01-31 Thread manoj c.
Colin Law wrote in post #1094550: > On 31 January 2013 11:56, manoj c. wrote: >> yes i meant select_tag only like below example >> <%=select_tag "people", "David".html_safe%> >> >> But here name and id of select_tag is same(people), i want to

[Rails] Re: Select_tag query

2013-01-31 Thread manoj c.
yes i meant select_tag only like below example <%=select_tag "people", "David".html_safe%> But here name and id of select_tag is same(people), i want to know how to give it seprately Thanks Manoj. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are sub

[Rails] Select_tag query

2013-01-31 Thread manoj c.
Hi anybody please give me example to write select_tag with id, name and options, :note => here id and name of my select tag are different. Regards and Thanks in advance Manoj. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google G

[Rails] Re: Difference between save and create ?

2012-07-27 Thread manoj c.
thanks a lot. -- 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, send email to rubyonrails-t

[Rails] Difference between save and create ?

2012-07-27 Thread manoj c.
Hi, Anybody please help me showing difference between save and create in ruby on rails. expecting help. Regards, Manoj. -- 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: Validation in ruby on rails

2012-07-24 Thread manoj c.
Ace S. wrote in post #1069767: > Dear sirs, > > I dont't think the addition of :message => "can't be blank" does make a > difference.\ > > Validations have their own strings already packed, in en.yml in the > active_model gem. In the console (rails c) you can try it out (assuming > your model is na

[Rails] Re: Validation in ruby on rails

2012-07-22 Thread manoj c.
Rafi A wrote in post #1069463: > Manoj, > > try this in the model: > > validates_presence_of :name, :message => "can't be blank" > > Regards, > Seeni Rafiyullah Khan A, > Skype id: rafiyullah.railsfactory | +91 9786832092 | rafigl...@gmail.com > *In Every moment, thank God.* Thanks a lot sir. reg

[Rails] Validation in ruby on rails

2012-07-20 Thread manoj c.
Hi, Please Help me,in a model i gave like validates_presence_of :name,now i need to display error message like "name is required" while clicking form submission button when leaving text box for name as empty,how to do this ?? -- Posted via http://www.ruby-forum.com/. -- You received this mes