Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error in rails3 in the controller file
- class HomeController < ApplicationController
- respond_to :json
- def index
- @home = Home.all
- respond_with(@home)
- cookies['AFID'] = {
- :value => request.env['AFID'],
- :expires => 1.year.from_now
- }
- cookies['SID'] = {
- :value => request.env['SID'],
- :expires => 1.year.from_now
- }
- #cookies[:AFID] = { :value =>}
- end
- def create
- @homes = Home.create(params[:home])
- respond_with(@home, :location => users_url)
- end
- end
Add Comment
Please, Sign In to add comment