Can't use symbols in redirect_to?

when i use something like:

redirect_to :controller => :login, :action => :login

i get an error:
“undefined method `include?’ for :login:Symbol”

is it not possible to use symbols with redirect_to? i thought it was
a rails idiom to use symbols like so.

thanks,
jeff

You can’t use a symbol for just the controller name. They work for the
other params. I don’t know why this is - anybody know?

Joe

yeah, i’m a bit confused as to why it’s ok to use symbols in the other
methods but not this one. the inconsistency isn’t very rails…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs