Re: [Rails] link_to_function

2010-08-23 Thread Christopher Meiklejohn
On Mon, Aug 23, 2010 at 9:38 AM, Pale Horse wrote: > I require some information, displayed at the top of a page, to change > onclick. > > The information is in the following form: > > NameJob role > Description... <%= link_to "read more", :controller => "controller", > :action => "show", :id => id

Re: [Rails] link_to_function

2010-08-23 Thread Bill Walton
Hi, On Mon, Aug 23, 2010 at 8:38 AM, Pale Horse wrote: > I require some information, displayed at the top of a page, to change > onclick. > > The information is in the following form: > > NameJob role > Description... <%= link_to "read more", :controller => "controller", > :action => "show", :id

[Rails] link_to_function

2010-08-23 Thread Pale Horse
I require some information, displayed at the top of a page, to change onclick. The information is in the following form: NameJob role Description... <%= link_to "read more", :controller => "controller", :action => "show", :id => id %> telephone number There is an image to correspond with this. T

[Rails] link_to_function inside of another link_to_function?

2010-07-15 Thread Bj Dj
Hi, Is something like this possible? <% link_to_function 'Name',stuff do |page| page.replace_html 'id', :text => link_to_function 'Name2',stuff2 do |page2| page2.replace_html etc end end %> I'm using the first link_to_function to create a link in a div with

[Rails] link_to_function error

2010-01-28 Thread Me
I have a link_to_function on one page to go to this edit screen with this link_to_function. <%= link_to_function 'cancel' do |page| page[:"work_show_#{work.id}"].hide end %> When I click on the edit button it says, missing ) after argument list http://localhost:3000/ Line 2 If i take out page

[Rails] link_to_function or button_to_function memory usage

2009-12-06 Thread Me
I have an full ajax app doing crud operations for contact info for one section. I was using ajax calls to edit and cancel and also to add a contact. I am implementing a button_to_function instead of doing an ajax call to just edit/add/or cancel a contact. I am running into a memory issue using t

[Rails] link_to_function and link_to_remote

2009-09-23 Thread Vlad Khomich
Hi guys. I`m having this kind of problem: i have the comments tree, there`s this link_to_function under each one: link_to_function "Reply", "$('comment_parent_id').setValue(#{comment.id});" as you see it simply passes comment.id to my form. Form looks like this : <%form_for :comment, :url =>

[Rails] link_to_function variable increment

2009-09-09 Thread prabesh shrestha
My view looks like this <%count=0%> <%=link_to_function("add another", nil, :id => "more_link") do | page| page.insert_html :bottom, 'phone_numbers', add_phone_field(count +=1) end %> add_phone_field is a helper method.I need to increment count on every click.But my code above does not do