Displaying 2 results from an estimated 2 matches for "view_cart".
2005 Nov 13
2
Link_to :protocol and :host?
Hello,
I am trying to set the protocol and host in link_to based on the
documentation.
I have the following:
<%= link_to "View Cart", {:controller => ''store'', :action => ''view_cart'',
:protocol => ''https://'', :host => ''secure.host.com''} %>
I would expect this to generate a https link to another host.
Instead, all I get is:
<a href="/store/view_cart">View Cart</a>
Have I misunderstood the url_for sp...
2007 Oct 17
9
@session['user'] vs session[:user]
This might seem really simple to some but just wanted to ask: what is
the difference between @session[''user''] and session[:user] ? and how
would you use each?
And another question, I have the following code:
def get_customer
if @session[''customer'']
@c = Customer.find(@session[''customer''])
end
end
private
def