Topic: Link_to problem

Hi,

When using link_to helpers, I sometimes am getting this output http://localhost:3000/sites/album.56
Notice the dot between the action an the ID.

In my view code, I'm not doing strange manipulations

<%@photoalbum_latest.each do |picture|%>
                           <%= link_to (image_tag picture.image_url(:frontend).to_s), album_sites_path(picture.photoalbum_category_id.to_s)%>
              <br>
              <%=picture.nl_comment%>
            </div>
            <% end %>

Is there a workarround this problem?
It is only happening using custom routes.

Thanks

Re: Link_to problem

It could be useful to know how you define your custom named route to have a chance to help you
Cheers...

Re: Link_to problem

Hi,

My routes look like this

resources :sites do
    collection do
      get 'contact'
      get 'detail'
      get 'sub'
      get 'tf'
      get 'album'
      get 'change_language'
      post 'createTF'
    end
  end