Displaying 3 results from an estimated 3 matches for "current_custom".
Did you mean:
current_customer
2012 Jul 17
24
Static Pages from Railcast
Hi everyone,
I need several pages to be static but also modify when requested. I try
following the railcast from Ryan at
http://railscasts.com/episodes/117-semi-static-pages?view=comments
Here what I have done!!
rails g scaffold Pages name:string permanentlink:string title:string
author:string access_level:string is_published:boolean
meta_description:string meta_keyword:string
2012 Aug 15
0
Devise access customer information without password
...(around line #1):
1: <%= form_for(@customer) do |f| %>
2: <fieldset>
3: <div class="cus">
4: <%= f.label :email %>
I don''t understand where customer_path his from. Also an extra how
should i define a safe and secure path to access
settings/current_customer.id/edit in the route.rb file.
Thanks in advance!!!
--
Posted via http://www.ruby-forum.com/.
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZC...
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