So would this be the &quot;conventional&quot; naming pattern?<br><br>DB Table: fiscal_transactions (model_names)<br>Model: fiscal_transaction (model_name)<br>Class: FiscalTransaction (ModelName)<br>Controller: fiscal_transactions (model_names)
<br>View Reference: (as follows)<br><br>&lt;% for fiscal_transaction in @fiscal_transactions %&gt;<br>&nbsp;&nbsp;&nbsp; &lt;html stuff&gt;&lt;%= fiscal_transaction.amount %&gt;&lt;/html stuff&gt;<br>&lt;% end %&gt;<br><br>Thanks again, Dave
<br><br><div><span class="gmail_quote">On 12/31/05, <b class="gmail_sendername">Derek Haynes</b> &lt;<a href="mailto:derek.haynes@highgroove.com">derek.haynes@highgroove.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
D'Andrew,<br><br>&gt; How do I refer to the model in the view<br>&gt; layer? Do I use f_transaction, ftransaction?<br><br>Use FTransaction (the name of the class):<br>FTransaction.find(12) &lt;&lt; - Find the transaction with an id of 12.
<br><br>&gt; Along the same naming issue, when defining a method &quot;recent_ftransactions&quot;<br>&gt; how does the naming work here too (re: underscoring)?<br><br>Just keep your method names all lowercase. It doesn't matter what you
<br>name your methods. So yes, #recent_ftransactions would work.<br><br>- Derek<br><br><br><br>On 12/31/05, D'Andrew Dave Thompson &lt;<a href="mailto:dandrew.thompson@gmail.com">dandrew.thompson@gmail.com</a>&gt; wrote:<br>
&gt; Greetings:<br>&gt;<br>&gt; I am writing a basic accounting module for an app. Rather unfortunately the<br>&gt; name &quot;transactions&quot; is a reserved term in Rails (being the only accounting<br>&gt; term trully representational of a financial transaction). I am left to come
<br>&gt; up with other names. One such name was f_transaction.<br>&gt;<br>&gt; This worked on the DB level, but I noticed that the Model name dropped the<br>&gt; underscore, thus &quot;FTransaction&quot;. How do I refer to the model in the view
<br>&gt; layer? Do I use f_transaction, ftransaction?&nbsp;&nbsp;Either way it is currently<br>&gt; returning a nill object at the moment.<br>&gt;<br>&gt; Along the same naming issue, when defining a method &quot;recent_ftransactions&quot;
<br>&gt; how does the naming work here too (re: underscoring)?<br>&gt;<br>&gt; Thanks, Dave<br>&gt;<br>&gt; --<br>&gt; ~~~~~~~~~~~~~~~~~~~<br>&gt; D'Andrew &quot;Dave&quot; Thompson<br>&gt; <a href="http://dathompson.blogspot.com">
http://dathompson.blogspot.com</a><br>&gt; _______________________________________________<br>&gt; Rails mailing list<br>&gt; <a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</a><br>&gt; <a href="http://lists.rubyonrails.org/mailman/listinfo/rails">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br>&gt;<br>&gt;<br>&gt;<br><br><br>--<br>Derek Haynes<br>HighGroove Studios - <a href="http://www.highgroove.com">http://www.highgroove.com</a><br>Atlanta, GA<br>Keeping it Simple.
<br>404.593.4879<br>_______________________________________________<br>Rails mailing list<br><a href="mailto:Rails@lists.rubyonrails.org">Rails@lists.rubyonrails.org</a><br><a href="http://lists.rubyonrails.org/mailman/listinfo/rails">
http://lists.rubyonrails.org/mailman/listinfo/rails</a><br></blockquote></div><br><br clear="all"><br>-- <br>~~~~~~~~~~~~~~~~~~~<br>D'Andrew &quot;Dave&quot; Thompson<br><a href="http://dathompson.blogspot.com">http://dathompson.blogspot.com
</a>