One question.<br><br>why do you use property for the Game class and attr_accessor for the Web class?<br><br>from what I understand you keep 2 different codebases and a single database. This looks like duplication of effort to me (and I can think of synchronization problems, etc..) I can see no easy solution to your problem (apart from changing to :add evolution)
<br><br>-g.<br><br><br><br><div class="gmail_quote">On Dec 12, 2007 8:49 AM, Matthew B Gardner <<a href="mailto:weather@speakeasy.net">weather@speakeasy.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello --<br> I'm writing a game which uses Og with MySQL, and I want my website to be<br>able to interact with that data as well. I'm wondering about solutions to<br>this problem:<br><br>Game...<br><br>class HelpFile
<br> property :name, String<br> property :body, String<br> property :viewed, Integer<br>end<br><br>Web...<br><br>class HelpFile<br> attr_accessor :name, String<br> attr_accessor :body, String, :control => :textarea
<br>end<br><br>The web class doesn't need the viewed attribute, but I'm assuming it'll drop<br>that attribute from the database if it isn't declared. Likewise, I'm sure<br>there will be web-data that I won't need in the game. I know I could disable
<br>full evolution, but I'd like to not have to do that...especially since I<br>think that's one of the best reasons to use Og with my project (changing to<br>add might not be too terrible). Maybe using two different declarations of
<br>essentially the same class isn't even good practice, but the game class<br>having access to web-based methods and vise-versa seems problematic to me<br>(not to mention the classes are in two different places).<br>
<br>Does anyone have some insight on this? Implementation solutions?<br><br>Thanks for any help -- please let me know if further clarification is needed,<br>Matt<br>_______________________________________________<br>Nitro-general mailing list
<br><a href="mailto:Nitro-general@rubyforge.org">Nitro-general@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/nitro-general" target="_blank">http://rubyforge.org/mailman/listinfo/nitro-general</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://me.gr">http://me.gr</a><br><a href="http://joy.gr">http://joy.gr</a><br><a href="http://cull.gr">http://cull.gr</a><br><a href="http://nitroproject.org">http://nitroproject.org
</a><br><a href="http://phidz.com">http://phidz.com</a><br><a href="http://joyerz.com">http://joyerz.com</a>