i have two link.

1) * <%= link_to "Add Transaction", search_customer_path(@listing) %> <br
/>*
2) * <%= link_to "Loyalty Report", search_customer_path(@listing) %> <br />*

These two links go to same pages. But when i click the * <%= link_to
"Loyalty Report", search_customer_path(@listing) %> <br />*. that the page
should have another 3 links.....? How is it possible..? Any way to pass
any thing with that second link....?


Thank you
vishnu

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/gTHS7k4EDisJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Dave Aronson at Dec 16, 2011 at 3:25 pm

    On Thu, Dec 15, 2011 at 02:22, amvis wrote:

    These two  links go to same pages. But when i click the  <%= link_to
    "Loyalty Report", search_customer_path(@listing) %> <br />. that the page
    should have another 3 links.....? How is it possible..? Any way to pass any
    thing with that second link....?
    You could add some URL parameters and check for them in the
    controller, using that to pass a flag that says whether or not to show
    the three extra links.

    -Dave

    --
    LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
    Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
    See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
    Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Colin Law at Dec 16, 2011 at 3:37 pm

    On 16 December 2011 15:24, Dave Aronson wrote:
    On Thu, Dec 15, 2011 at 02:22, amvis wrote:

    These two  links go to same pages. But when i click the  <%= link_to
    "Loyalty Report", search_customer_path(@listing) %> <br />. that the page
    should have another 3 links.....? How is it possible..? Any way to pass any
    thing with that second link....?
    You could add some URL parameters and check for them in the
    controller, using that to pass a flag that says whether or not to show
    the three extra links.
    In case you do not know how to do that you can use
    <%= link_to "Loyalty Report", search_customer_path(@listing,
    :my_param => "some_value") %>

    Colin
    -Dave

    --
    LOOKING FOR WORK! What: Ruby (on/off Rails), Python, other modern languages.
    Where: Northern Virginia, Washington DC (near Orange Line), and remote work.
    See: davearonson.com (main) * codosaur.us (code) * dare2xl.com (excellence).
    Specialization is for insects. (Heinlein) - Have Pun, Will Babble! (Aronson)

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


    --
    gplus.to/clanlaw

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedDec 15, '11 at 7:22a
activeDec 16, '11 at 3:37p
posts3
users3
websiterubyonrails.org
irc#RubyOnRails

3 users in discussion

Dave Aronson: 1 post Amvis: 1 post Colin Law: 1 post

People

Translate

site design / logo © 2021 Grokbase