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