aperture science wrote: > Thanks for all the replies. I took advice and ditched trying to get > restful-authentication to work, and re-focused on authlogic.
Good move. :) > I have been able to piece together a semi-working system now. More or > less... I can log in and view a page only accessible to registered > members now. I am trying to devise a manner to display only certain > content on my main index to authenticated visitors, I don't know if i > can put something like an "if(authenticated) #hidden" line into my > main index.haml, but that is probably beyond the scope of this thread. Sounds like you're missing a key difference between authentication and authorization. Authlogic is designed to provide authentication (is this user's identity valid). Authorization asks, "Can this authenticated user, or group of authenticated users, allowed to read/write/delete this data?" For authorization I'd recommend looking into something like CanCan: http://github.com/ryanb/cancan > I did not realize just quite how new and different rails 3 is compared > to previous versions. But I look forward to developing further with > the framework as I really like how it all works (when I am able to get > it to work, at least). A lot of really great work has gone into Rails 3. I'm really liking what I've seen so far. > Part of my initial frustrations I believe were a result of not > understanding some of the basic concepts, plus I've been trying to > develop on Windows, which has it's own heap of frustrating 'features', > but I am starting to get the hang of it. Exactly why I gave up on Windows a long time ago. As my personal choice I develop on a Mac and deploy to Ubuntu. That's not intended to be "troll food" to start a platform war, but I have heard a lot frustration from people trying to develop Rails on Windows. I know it can be done, and hopefully things are getting better. However, it is true that a lot of Rails revolves around traditionally UNIX based tools (Git, SQLite, MySQL, PosgreSQL, etc.). Having a UNIX based system just seems to make all that work seamlessly. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

