Re: function calling in RoR

bala kishore pulicherla
Fri, 04 Jul 2008 07:08:15 -0000

:o
u can call like
<%= link_to "Name" controller_path %>

On Fri, Jul 4, 2008 at 12:13 PM, jokrish
<jollykrishnnan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

>
> i m new in RoR..I have created a function in my controller
>  def create_by
> ......
>  end
> .how can i call this one by using a link ..ie from my view this
> function should be called when clicking on some field like name...
>
>  so in my index how can i call this function using a link
> . <%= link_to _created_by ''name''
%> ..
> i have used this..but getting errors...can anybody help me...
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org