SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: link_to problem

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    link_to problem

    Hi there,

    i've got
    Code:
    <%= link_to(content_tag(:span, t("views.actions.create_resource"), { :controller => 'business_contacts', :action => 'new' }, :class => "button-link")) %>
    but its giving me a 500 error. I'm pretty sure i botched the syntax, just wondering if someone can point me in the right direction.

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Things to try:
    1)Remove curly brackets from around controller/action
    2)Make sure the "business_contacts" controller, "new" action is setup to accept get requests in the routing file.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •