Thursday, February 24, 2011

[Rails] Rails 3 Model Without Database

Hello everyone,
I'm working on a Rails 3 social networking app (following RailsSpace
by Addison Wesley) but the book is old and using Rails 2. Thus far I've
been chugging along converting it along the way, but I'm running into
some trouble with my Avatar model. I'm trying to implement it without
having a table in the database. In accordance to the book, I created the
model manually (instead of with generate) and add an initialize
function. I created the corresponding controller and views, but when I
try to upload my avatar, it errors out telling me that database.avatars
doesn't exist.

I'm pretty sure I've got the controller and model right, but I just need
to tell Rails to NOT look in the database for this model...

Any ideas?

Thanks in advance,
- Jeff

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate