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 &lt;<a href="mailto:weather@speakeasy.net">weather@speakeasy.net</a>&gt; 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> &nbsp;I&#39;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&#39;m wondering about solutions to<br>this problem:<br><br>Game...<br><br>class HelpFile
<br> &nbsp; &nbsp; &nbsp; &nbsp;property :name, String<br> &nbsp; &nbsp; &nbsp; &nbsp;property :body, String<br> &nbsp; &nbsp; &nbsp; &nbsp;property :viewed, Integer<br>end<br><br>Web...<br><br>class HelpFile<br> &nbsp; &nbsp; &nbsp; &nbsp;attr_accessor :name, String<br> &nbsp; &nbsp; &nbsp; &nbsp;attr_accessor :body, String, :control =&gt; :textarea
<br>end<br><br>The web class doesn&#39;t need the viewed attribute, but I&#39;m assuming it&#39;ll drop<br>that attribute from the database if it isn&#39;t declared. Likewise, I&#39;m sure<br>there will be web-data that I won&#39;t need in the game. I know I could disable
<br>full evolution, but I&#39;d like to not have to do that...especially since I<br>think that&#39;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&#39;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>