Finally been hacking on some code this weekend for my rails project. I want to have people login with user credentials and a couple of resources on using restful_authentication that I found EXTREMELY useful are here:
A great demo
http://media.railscasts.com/videos/067_restful_authentication.mov
and
if you get an error when trying to login
http://blog.anthonychaves.net/tag/rails
Also the controller for my default class had this added to it so we don't get into an infinte loop when trying to login for the first time
skip_before_filter :login_required
I also added this on the user controller so we can go create a new user without having to login. Duh!
I'm using Rails for .NET Developers from The Pragmattic Programmers to guide me along with lots of online docs. I'm also learning Ruby as I go. It seems to share with python the same notion of 'what you expect will work'. Pretty much I've been typing things and they are working, without too many tweaks. It's kind of nice. I'm doing super simple run of the mill stuff, so I'm not expecting too many things to blow up as of yet.
Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts
Sunday, August 9, 2009
Friday, May 29, 2009
Well, I'm drinking the Kool Aid
My brother in law and I had an idea for a project and from what he and many others have said, it would be a perfect Rails project, so I downloaded Rails and got a copy of Rails for .NET Developers and I started reading last night. It looks like it should do the trick. This is a pretty simple application, so it seems like a great fit for what Rails is supposed to be good for. Having seen some of the things people put together for Rails Rumble, I'm hoping I can bang this thing out fairly quickly.
Anyway, given I've done my share of python, C++, C# and VB with a smattering of Javascript and PHP and vague memories of lisp and a bitter taste in my mouth for perl, I'll see how this works out.
Anyway, given I've done my share of python, C++, C# and VB with a smattering of Javascript and PHP and vague memories of lisp and a bitter taste in my mouth for perl, I'll see how this works out.
Subscribe to:
Posts (Atom)