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
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%>
>>>
>>>
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
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
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
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
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
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
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
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
10 matches
Mail list logo