Rails, Passenger and Authlogic - ruby-on-rails

Has anyone figured out how to use authlogic with passenger? On the Github Binary Logic page there is a note that says it does not work, the problem is that when you log out, it does not really log you out -- you continue to be logged in -- I have researched this -- and it seems to happen to most people.
But I would have thought by now someone would have figured out how to fix this issue.
Any helpers out there?
This especially an issue on Webfaction as that Passenger is your only option for serving your files.
Most guides tell you it is the fault ofthe "active record store" but i can not seem to find a tutorial that shows you how to fix this.
my set up is rails 2.3.10 and passenger 2.2.15
Any help would be great.
thx

The authlogic readme states that it's an issue with Passenger and 2.1.x, but this is not the version you are using. What is the problem?

We use Authlogic in production with Phusion Passenger. The problem you mentioned turned out to be a cookie bug in Rails. The most recent Rails 2.3 and 3.0 releases fix this problem.

Related

Trouble with Heroku Deployment and Interpreting Heroku Log

This is my last resort to figure this out. I've searched through stackoverflow and googled various topics, but it seems to come down to how to interpret/analyze my own Heroku log. There's so much going on that I'm not sure where to look first. I see things like eager_load and direction to files app/config/environment:rb:5 and there also seems to be issues with my Unicorn configurations and relationship associations. I've gone through my files and haven't been able to locate what my logs are referring to, up until now it's been really easy to interpret errors.
A little background: I had originally built my rails app with the default Sqlite3 settings and I have attempted to switch it to Postgres. So maybe there's some conflicts with that going on as well. I want to be able to read my Heroku Logs in the future on my own and know exactly where to look. So if someone could provide a good tutorial about reading Heroku Logs that would be great as well.
Here's where I've looked so far:
I've looked on devcenter on heroku's website, but I'm not making the connection from their instructions, to the issue in my code. I'm just a that stuck point, but have been trying to figure it out for days! I'm worried that I'm just missing something basic, which is why I haven't been able to figure this out yet.
I've also looked at association_basics.html on ruby on rails guides because I've been having some syntax issues.
I've used foreman start to see if my Procfile is working and have gotten another huge list. I've also used heroku ps, which gives me web.1 crashed
Here's the Heroku Log that's also connected to my app's github page:
https://github.com/jsmit032/seasons-app/issues/29
If any other information is required, please let me know and I'll edit my questions so hopefully this can help others as well.
2014-11-21T19:27:58.271705+00:00 app[web.1]: has_many :user, through :user_to_destinations
doesn't look right - it should be
has_many :user, through: :user_to_destinations
at /app/app/models/destination.rb:3
So I got the whole app to deploy! Turns out it was a pre-complied issue.
So I went through the guide on Heroku for pre-compiling assets in Rails 4: https://devcenter.heroku.com/articles/rails-4-asset-pipeline
I also went through the heroku guide for prepping your rails 4 app:
https://devcenter.heroku.com/articles/getting-started-with-rails4#migrate-your-database
Also went through the heroku guide for SQLite on Heroku and the Deploying Rails Applications with Unicorn guide.
Looking through the console errors on the actual site was a huge help. It's how we figured out that the assets pipeline might not be working.

Alternative to using Passenger for rails on FreeBSD9.1?

I want to use Ruby on Rails via rbenv with Apache2.4 on FreeBSD9.1, running ruby-2.0.0p247 and rails 3.2.13.
My problem is that rails needs a hook into apache, which would normally be accomplished using passenger. However, due to a bug in the OS, passenger won't work. Linkage below detailing the specific OS bug. I'd like to get things moving well before FreeBSD9.2 arrives (9.2 resolves the issue).
Is there an alternative to passenger? How can I accomplish my goal in the least exotic way possible?
urlpassenger on github commit: check for broken freebsd version
urlCatching C++ std::bad_cast doesn't work in FreeBSD 9.1
urlWhy does catching std::bad_cast not work on FreeBSD 9?
Conveniently, and even after much initial research, after posting this question, another useful answer was discovered. While quite comprehensive, I'm not sure it entirely answers my original question. Any help on this matter is appreciated.
Note: I work at Phusion.
You can use any of the other app servers described at Ruby on Rails Server options. Unicorn, Puma, Thin... they will all get the job done, though not necessarily as easy as Phusion Passenger.
But if you prefer Phusion Passenger then there's still hope. A pull request came in a couple of days ago which works around the FreeBSD bug: https://github.com/phusion/passenger/pull/87
I haven't got time yet to review the pull request (I'm too busy doing my yearly taxes) but perhaps you can try it out yourself. Installation instructions for the git repo are documented in the readme.

Rails 2.3.11 Administrator Gem

This is my first question here in StackOverflow :)
I've been searching for the best plugin for administrator for my Rails 2.3.11 app.
I can create my own but I have to rush my project so I decided to use these kinds of plugin.
I already searched rails_admin and active_admin. There are both good but I think that's for Rails 3 only. So I need to find some admin plugins for Rails 2.3.11.
Your ideas are much welcome :) Thanks!
Give Typus a try. It works on rails 2.3 and is quite popular, although the author isn't planning on maintaining the 2.3 version anymore.
https://github.com/typus/typus/wiki/requirements

Admin Plugins For Rails

I'm looking for a good admin plugin/gem for a Rails 3 application. I have tested rails_admin and it seems very good. Has anybody used any other plugins for Rails 3.0?
Also has anybody had any issues with rails_admin?
A lot of options, at the moment. Check all of them out here.
http://ruby-toolbox.com/categories/rails_admin_interfaces.html
I have heard both admin_data and typus are good.
Using Rails Admin too. Never had a problem.

Where can I download ruby on rails?

Might sound like a stupid question I guess but rubyonrails.org is just an advert right now, which isn't a good sign.
http://rubyonrails.org
Except that they are having some domain registration problems today. It should be back up within 24 hours.
Until that is back up, it looks like http://rubyonrails.com will work for you.
See http://twitter.com/dhh
http://rubyonrails.com
David Heinemeier Hansson tweets:
http://twitter.com/dhh/status/12537282169
http://twitter.com/dhh/status/12533585916
http://twitter.com/dhh/status/12525309898
install rubygems, they type "gem install rails" from the commandline. There were some domain name issues with the hosting provider today, should be cleared up in the next few hours.
You're right, they are down (today?).
GitHub ( http://github.com/rails/rails )
Or a RubyForum well written guide, working links ( http://railsforum.com/viewtopic.php?id=34 )
Or if you have Rubygems installed:
gem install rails
Looks like the site is currently having problems with its domain registrar, see here. Hopefully they should be resolved before too long and these links should work.
First you need to download Ruby www.ruby-lang.org
Rails is a Ruby gem, so after installing Ruby, in a console you would enter
gem install rails
Check out http://guides.rails.info/3_0_release_notes.html#orm-abstraction-and-action-pack-interface to get started with the latest beta release of Rails 3
Or http://www.railstutorial.org/book#sec:up_and_running or similar for basics on Rails 2.X
You can find the rails gems and download here: http://rubyforge.org/frs/?group_id=307

Resources