so please help me. i am a newbie.i have tried to install this
application for the last
one month. i think i have reached the final step. so please help me to
solve this error.i will be very thankful to you.
i have attached the .htaccess file and config/routes.rb file
Just kind of curious, in reading through the tutorial, it doesn’t
mention actually installing and setting up passenger. Have you done that
already and is that working as it should?
Thank you for your reply. I have hosted my site in site5 and phusion
passenger is already installed.
And my error is when i access my webpage it shows
this webpage has a redirect loop. The site has been redirected to www.technoadmin.com/user/dashboard but it should redirect to www.technoadmin.com/login. Please guide me to solve the error.
And my error is
when i access my webpage it shows this webpage has a redirect loop. The
site has been redirected to
www.technoadmin.com/user/dashboard and it shows nothing except the
redirect loop error.
but it should redirect to the login page of application. Please guide me
to solve the error.
Is it getting to your rails app? If so what is in the rails log file?
Thank you Colin L. for your reply. i am newbie in ruby on rails. this
is the logfile of my app (fedena) in prouction environment.please help
me to resolve the issue.
Logfile created on Fri Jul 26 14:55:03 +0530 2013
Processing UserController#login (for 182.73.241.18 at 2013-07-26
15:00:48) [GET]
Parameters: {“action”=>“login”, “controller”=>“user”}
[FedenaRescue] No method error undefined method `config_value’ for
nil:NilClass
Thank you for your reply. I have hosted my site in site5 and phusion
passenger is already installed.
And my error is when i access my webpage it shows
this webpage has a redirect loop. The site has been redirected to www.technoadmin.com/user/dashboard but it should redirect to www.technoadmin.com/login. Please guide me to solve the error.
Guys please help me to resolve this error. I tried almost everything and
i am not able resolve the error
And my error is
when i access my webpage it shows this webpage has a redirect loop. The
site has been redirected to
www.technoadmin.com/user/dashboard and it shows nothing except the
redirect loop error.
but it should redirect to the login page of application. Please guide me
to solve the error.
NoMethodError (undefined method config_value' for nil:NilClass): app/controllers/application_controller.rb:319:inset_user_language’
Colin please guide me to solve the error.
These are the lines from 310 to 325 in my application_controller.rb
return @local_tzone_time
end
private
def set_user_language
lan = Configuration.find_by_config_key(“Locale”)
I18n.default_locale = :en
Translator.fallback(true)
if session[:language].nil?
I18n.locale = lan.config_value
else
I18n.locale = session[:language]
end
News.new.reload_news_bar
end
end
My first thing is to solve errors in my installation. i am learning
rails but i am not able to solve the errors occur in my installation.
the fedena forum is not replying for my errors. so please guide me to
solve the errors.
private
def set_user_language
lan = Configuration.find_by_config_key(“Locale”)
I18n.default_locale = :en
Translator.fallback(true)
if session[:language].nil?
I18n.locale = lan.config_value
As I said you are calling config_value on a variable that is nil. Sol
lan is nil. Presumably the call of
Configuration.find_by_config_key(“Locale”) is not finding the key. I
imagine there is a fedina config file you have to setup that should
contain a Locale setting.