search for: _attachment

Displaying 3 results from an estimated 3 matches for "_attachment".

Did you mean: attachment
2007 Sep 18
2
Making attachment_fu polymorphic
...class for every associated attachment (Productimage, Ad_doc, etc.). Instead it relies ## on a single Model class called ''Attachment'' and a table called ''attachments'' (or whatever you want ## to call them). It dynamically creates a class called #{CallingClass}_attachment and then returns an ## instance of that class with its polymorphic attributes (whateverable_type/id) set to match its parent ## object. It is called by an object, not a class, because a polymorphic attachment ## must necessarily belong to a particular Model object. DRY up your life. #######...
2014 Feb 06
1
qmail dovecot lda
...39;' bounce-no-mailbox | DTLINE=${DTLINE/$USER-} /var/qmail/bin/preline -f /usr/libexec/dovecot/dovecot-lda -d $EXT@$USER -a $EXT@$USER If I let enabled only this line | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox everything is working OK 1st test: from yahoo mail - - send an _attachment of 2mb ( way over quota ) and the response: @4000000052f370fd3381b504 info msg 3793: bytes 4268 from <<>@medianetork.ro> qp 19703 uid 420 @4000000052f370fd3381b8ec starting delivery 6: msg 3793 to remote pflorin1 at yahoo.com @4000000052f370fd3381b8ec status: local 0/10 remote 1/120 @4...
2009 Feb 25
9
local variables in partials lead to NameError
...t seem to send a local variable to my partial. The below code leads to the following error: NameError in Residential_listings#new undefined local variable or method `foo'' for #<ActionView::Base: 0x3fb53f8> I am trying to call the variable ''foo'' in a partial called _attachment.html.erb, which is nested in another partial called _form.html.erb. In _form.html.erb, I have: <%= render( :partial => ''listings/attachment'', :collection => @residential_listing.attachments, :locals => {:foo => "bar"}) %> And then in /listings/_a...