Displaying 2 results from an estimated 2 matches for "email_pag".
Did you mean:
email_page
2006 Jun 07
1
has_many, through, want to store email in mysql
...der.rb:
class Header < ActiveRecord::Base
belongs_to :email
belongs_to :headerkey
end
What I want to achieve, is to list all emails (a list like in every mail
client, with columns from, subject, date, etc), though a scaffold.
In the email_controller.rb, I have this:
def list
@email_pages, @emails = paginate :emails, :per_page => 10,
:conditions => ["email_id is NULL"]
end
And in the list view this (in short - only from colunn):
<% for email in @emails %>
<tr>
<td><%= email.headers.find(:first, :conditions => [''headerkey_id = ?...
2006 Oct 27
0
Test
This is a test
--
Thomas Chris
http://www.youbanking.com
http://www.youbanking.com/email_page.html
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman....