[Rails] Re: Sessions in Rails

2011-05-27 Thread Leo M.
It was this, so the method index had to be copied exactly how it is to another controller in order to can list another controller's array. Right! Thank you very much :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: Sessions in Rails

2011-05-26 Thread Leo M.
Thanks very much! I'll mess around with the code and I'll let you know :) -- 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@googlegroups.com.

[Rails] Re: Sessions in Rails

2011-05-26 Thread Leo M.
I've got an issue :how can I pick datas from a controller to another controller's view? For example, how can I show a Question in the Answer's index.html.erb? If i write %= @questions.question % on Answer's index.html.erb, it doesn't recognize the method, even if I previously wrote on the

[Rails] Re: Sessions in Rails

2011-05-26 Thread cris factolerin
hmmm not really sure if I understand your question but here goes.. class AnswerController ApplicationController def index @questions = Question.find(:all) end end If you have this code on your controller then the reason why it doesn't recognize your method is because @questions here is

[Rails] Re: Sessions in Rails

2011-05-25 Thread Kendall Gifford
On Wednesday, May 25, 2011 8:53:14 AM UTC-6, Ruby-Forum.com User wrote: I'm sorry, I originally posted this topic on Rails-Deployment, but it's evidently the wrong area. I didn't want to, did that on distraction, sorry :) Anyway, the original post was this below: Hello! I'm at my very

[Rails] Re: Sessions in Rails 3

2011-03-02 Thread Manoj Sachwani
Thanks Jatin! Found the guides to be more than sufficient! :) On Feb 10, 11:56 pm, Jatin kumar jatinkumar.n...@gmail.com wrote: There you go. Everything you need to learn about sessions and cookies is right

[Rails] Re: Sessions in Rails 2.3?

2009-06-12 Thread Maurício Linhares
Yes, you can't have a lot of objects in the session using the cookie based session store, but this shouldn't be a problem if you're just storing things like the flash or user ids on it. - Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Fri, Jun 12, 2009

[Rails] Re: Sessions in Rails 2.3?

2009-06-12 Thread Jeff Lewis
Hi Alex, If you're using rails 2.3.2, take a look at ./config/initializers/ session_store.rb. There you'll see what you're looking for: ... #ActionController::Base.session_store = :active_record_store ... Jeff On Jun 11, 8:10 am, Alex Barlow alexbarlo...@googlemail.com wrote: Hi guys, new

[Rails] Re: Sessions in Rails 2.3?

2009-06-11 Thread Maurício Linhares
Currently Rails stores sessions in the browser and this is the most scalable solution found until now. Unless you have a really great idea to build a better session store, just use the cookie based one and you're done. - Maurício Linhares http://codeshooter.wordpress.com/ |

[Rails] Re: Sessions in Rails 2.3?

2009-06-11 Thread Walter McGinnis
I have memcached based sessions (i.e. config/environment.rb config.action_controller.session_store = :mem_cache_store) from before 2.3. Are their any issues I should I keep in mind if I switch to the new hotness? Man, that phrase sounds dated! Cheers, Walter 2009/6/12 Maurício Linhares