RailsCasts Pro episodes are now free!

Learn more or hide this

Casey Provost's Profile

GitHub User: caseyprovost

Site: www.caseyprovost.com

Comments by Casey Provost

Avatar

Solved it...

ruby
if options.kind_of?(Hash) && current_account.present?

that needed to replace line 12 of the pastie code...

Avatar

I am currently getting a "can't convert Symbol into Integer" error and I am not sure why...

The offending lines are:

ruby
<%= link_to new_user_session_path do %>
    <span class="bold">Login</span>
<% end %>

specifically the first line

Here is a pastie to my UrlHelper which is slightly modified...
http://pastie.org/private/nnfgboyxmarlcdh3nakokw