On Wed, 20 Sep 2006 16:57:37 +0200, Casper Fabricius wrote:

> I think this sounds like a great project, and you seem to have made the
> right choices, at least for my liking. What could be extra cool, was to have
> an ambition about being completely CRUD using Simply RESTful, most of all
> because I'd like to learn from that accomplishment - and it would 100%
> compatible with all the nice API stuff etc. coming out of that.

I've thought about that, but I'm not convinced yet that CRUD maps nicely to
the idea of logging in.  In fact, most of the time, I suspect, you'll never
even explicitly call the login action; you'll be going to a page on the
site, and it'll have a before_filter to an authorization function that will
redirect you to the login page.  

Of course, since the controller itself is so lightweight, there's nothing
preventing you from defining your own CRUD actions, whether you are mapping
CRUD to the account or to a login session.  I expect that the built-in
controller will serve as a scaffold more than anything.  But, to me,
verb-based actions are a better choice for Hark, at least till I see an
argument otherwise!

> I also think your spec is really nice - it seems map perfectly to a set of
> integration tests. Is this some kind standard; rspec?

Good eye - they are, in fact, the output of running a set of tests using
rspec (http://rspec.rubyforge.org).  rspec doesn't yet do integration tests
in the Rails sense (multiple controllers/simultaneous sessions), so I'll
probably end up writing those under Test::Unit, but someday I hope this
project can be completely spec-driven.

Jay

_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to