[Rails] Re: Re: Link as a link AND as a function

2010-03-21 Thread Michael Murillo
Gotcha! Perfect. Thank you Jeffrey. I got it to work with the following. In my view: <%= link_to_function truncate(link.name, 60), "clickThru('#{link.link}','#{link[:id]}', 'votes')", :title => link.name, :href => link.link %> In my application.js function clickThru(url, id, verb) { new Aj

[Rails] Re: Link as a link AND as a function

2010-03-15 Thread Michael Murillo
Jeffrey L. Taylor wrote: > Quoting Michael Murillo : > <%= link_to_function truncate(article.title, 60), > "clickThru('#{article.url}','#{article[:id]}', 'click')", > :title => article.feed.title, :href => article[:id] %>

[Rails] Link as a link AND as a function

2010-03-14 Thread Michael Murillo
Hi there, I am relatively new to Rails and I am trying to do a fairly common task. I have a page that displays a series of links that go to offsite URLS. Next to each link is a counter that shows how many times that link has been clicked-through. I would like to be able to have the user click on

[Rails] Re: Persistent Sessions

2010-03-04 Thread Michael Murillo
> Michael, I would recommend using Authlogic because it has a method, > remember_me_for, that one can redefine in the user_session model to > set the duration of time. > > Good luck, > > -Conrad I look into this but I am a bit concerned about whether there will be an overwriting or conflicts w

[Rails] Persistent Sessions

2010-02-27 Thread Michael Murillo
Hi there, I am trying to figure out how to have persistent sessions (with like a month until expiration) for my users, sort of like a "remember me" functionality but that is handled automatically on login. I am hoping I can get some help from someone who is more experienced with Rails. I am curr

[Rails] Re: dispatch.cgi? A host better than Site5

2010-01-19 Thread Michael Murillo
Frederick Cheung wrote: > I think rails stopped generating dispatch.cgi/fcgi files in 2.3 > > Fred This is what I thought. Which then leaves me confused as the proper way to launch my site on the Site5 server. -- Posted via http://www.ruby-forum.com/. -- You received this message because you

[Rails] dispatch.cgi? A host better than Site5

2010-01-18 Thread Michael Murillo
When I type the command $rails app_name I don't see the following list generate a dispatch.cgi or dispatch.fcgi file. It appears that I need this file and I need to modify it in order to properly deploy my site on Site5 hosting. I have completely developed my site on my mac (my first rails app)