Here's what i use -
http://github.com/staugaard/active_record_base_without_table/tree/master

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)



On Mon, Jun 1, 2009 at 5:20 AM, Tom R <[email protected]> wrote:
>
> Hi there,
>
> I'm relativity new to Rails (I've been eying it for some time,
> though). I'm reasonably familiar with Ruby's syntax.
>
> When I pick up a new language, I like to make a simple blog. I'm
> focusing on the authentication at the moment. I am well aware of the
> existing plugins out there, but since this application will never see
> the light of day and I learning by rolling my own.
>
> Now, let's say I have a login form, how do I validate that? I'm not
> saving into  a model, or anything like that. At this stage, I'm just
> using a form_tag, and doing simple if params[:username] == '' in the
> controller. Very ugly indeed.
>
> What is the best way to validate a form (and get the nice error
> messages, like when you are scaffolding) when you are not necessarily
> saving data?
>
> Cheers.
> Tom.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to