> :tag_name.to_sym
> 
> but :tag_name is not a variable...

I noticed that just after posting, but fixing it didn't help.

>> And about datamapper, what if I did this?
>>
>>     merb-gen model post_too --orm datamapper
>>
>> Now all I'd need to do is read post_too.rb to see how datamapper works, then 
>> port that over to post.rb and toss post_too.rb. Right?
>>
>> Wrong! All that generated was a post_too_spec.rb, demanding I specify a 
>> non-existent PostToo!
>>   
> I don't think it is possible to mix ORMs like you are trying, you 
> probably have to change the ORM in config/init.rb first. I'm not 100% on 
> this one.

Did you read my post? (I'm not trying to mix ORMs, BTW, I was just trying to 
generate sample code to look at.)

I am reporting a bug - admittedly on the wrong channels - that merb-gen did not 
create a model .rb.

> This will cause more problems for you though, as the controllers and 
> views (at the very least) will all have to be updated to use datamapper 
> instead of sequel as well. As simple as this merb app is, it would 
> probably be less work to start fresh.

Parenthetically, is mixing ORMs always high-risk? I had suspected that only 
'merb-gen model' accepted the --orm argument exactly so you could do that...

> It looks like the main issue is you are attempting to learn merb through 
> updating someone elses code, and more specifically, trying to write 
> tests for code you do not understand. I would highly recommend starting 
> a fresh merb app using datamapper unless you are really familiar with 
> SQL and want to have more flexibility you can use sequel. I just had a 
> quick look back at your previous posts, and you mention you use Rails as 
> your day job, so I'd really recommend you use activerecord if you are 
> having difficulties with datamapper or sequel, as it is something you 
> are already familiar with, and you can use fixture frameworks that are 
> designed for activerecord as well.

Your concern is noted, but if all the blogs keep saying that all this stuff is 
so danged easy and flexible, then...

-- 
   Phlip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to