On Monday, 20 January 2014 09:43:00 UTC-5, Takashi Nakagawa wrote:
>
> Hi walter, thanks for answering question.
>
> I've read about polymorphic relationships and I've tried it before, but in 
> my case, I should use database which is already used in other project and I 
> make new rails app with the database. so I can' t change database structure 
> easily. 
>
>
Are you attempting to make a Rails app that *shares* a DB with another 
application? In my experience, that's a phenomenally terrible idea - it 
sounds good at first, but you wind up having a very hard time debugging 
things or even creating a realistic test environment. If the old 
application must continue running, is there any way you can set up an 
"extract" process that copies + reformats data into the Rails app in a 
saner format?

If you absolutely can't do that, you'll need to be more specific about the 
problem you're trying to solve. Where is this "dynamic" class name supposed 
to be coming from?

--Matt Jones

 

> 2014年1月17日金曜日 23時25分24秒 UTC+9 Walter Lee Davis:
>>
>> Have you read anything about polymorphic relationships yet? That's a good 
>> place to start. Rails Guides, ActiveRecord Relations, read the whole page, 
>> but pay attention to the section on Polymorphism. 
>>
>> Walter 
>>
>> On Jan 17, 2014, at 4:55 AM, Takashi Nakagawa wrote: 
>>
>> > 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups "Ruby on Rails: Talk" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an email to [email protected]. 
>> > To post to this group, send email to [email protected]. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rubyonrails-talk/ecc2d9dd-fb18-4248-a50c-4fa9c36721b1%40googlegroups.com.
>>  
>>
>> > For more options, visit https://groups.google.com/groups/opt_out. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b37fee2a-5866-441c-8c7a-b05494030c5c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to