Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
sequel error handeling
jeljer te Wies
5/31/2009 12:45:00 PM
hee people.
I have a problem with error handeling in sequel.
here is my code:
http://pastie....
As you can see i have a method called create.
in my migration i set the domain to be unique. So i get an error when i
try to set a domain name twice ...
but how can i get that error ? .. i tried (as you can see):
if item.save
return true .... etc ..
but that doesn't work :( ( obviously) ...
i googled, read the cheatsheet, readme etc etc.
irc doesn't respond so .. hopefully you guys know!!...
thanxs :D
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
sequel error handeling
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password