function calling in RoR

jokrish
Fri, 04 Jul 2008 06:43:49 -0000

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