Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Create dynamic ids for header tags
13 Posts
Create dynamic ids for header tags

I freely admit, I didn't test that code in any way, I just wrote it to give a general idea as I was brushing my teeth.

From what I see of your code, you don't have the before_filter, so the @current_language instance variable never gets set to anything. I suspect that's why your view is coming up blank.

I've added the before filter, but it still doens't work. Any other suggestions?

The problem is fixed, because I'm using a redirect, the values of the variables are cleared. Now I'm using sessions and that's working great.

Adam thanks for your time and help!

13 Posts
Login to add your message