I want to pass the name of a calling web page in a form in Ruby

A

Anthony Sargent

Hi I am quite new to ruby.

I have a landing page controller and index page that has a button on
it that pops up a user input form for email address etc. One of the
things I want to capture and write into the database is the name of
the originating landing page. ie www,mydomain.com/landngpage/
campaign1

another landing page could be

www,mydomain.com/landngpage/campaign2

The above form calls a ppc_user controller

www,mydomain.com/lppc_user/new

Can anyone help me on this. I have seen a few examples of passing
data using the flash option but I can't get this to work.

Anthony
 
B

Brian Candler

Well I don't see anything Ruby related in that question, but you could
look at the HTTP "Referer" header.

If you are writing code in a web framework such as Rails, and you have a
question about Rails (such as how to get a particular header out of the
request object), then you'd be better off asking on the Rails mailing
list.

This mailing list is for discussion of Ruby, the programming language,
rather than a specific application written *in* Ruby.

Regards,

Brian.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top