Displaying 7 results from an estimated 7 matches for "ticket_id".
Did you mean:
socket_id
2008 Sep 02
2
Actionmailer - Multipart and Outlook?
...nts are
displayed, and in thunderbird, the last attachment is displayed, and in
yahoo, none of the attachments display. I''ve followed many tutorials
including the guide in the actionmailer main doc.
this is in my mailer
Simplified Version:
def ticket_email(options)
msg = options[:ticket_id] ? "#{options[:message]}<br /><br /><br
/>Please leave the [Ref: ##{options[:ticket_id]}] in your subject when
replying, Thank you." : options[:message]
subject "subject"
recipients options[:recipients]||''''
from options...
2006 Apr 26
10
save new model with child model
...ent
if @ticket.save
@notice = "Ticket added. Thanks for contributing!"
@ticket = Ticket.new
@comment = Comment.new
else
@notice = "Sorry, unable to add ticket."
end
The save always fails because the comment does not have a ticket_id
specified. How can I specify the ticket_id for the comment if the
ticket id doesn''t even exist before I call save. I thought Rails would
take care of this for me when I use the << or push(). (Rails 1.0)
Any ideas what to do?
Thanks,
Peter
2007 Oct 03
4
TextMate language weirdness
I''m having trouble with TextMate and assigning the RSpec language to
*_spec.rb files within rails projects. Here is what is happening:
I''m in a file that has the language "Ruby on Rails" selected.
I do a ctrl-shift-down to switch to the corresponding _spec.rb file.
The _spec.rb file has the language "Ruby on Rails" selected.
I change the language to
2008 Jun 13
2
Rails 2.1.0 - find with :include and missing JOIN in SQL query
...s totally different SQL query than
2.1.0. Here''s Rails find query and generated SQL queries:
Foo.find(:all, :include => :ticket, :conditions => (''project_id =>
1''))
Rails 1.2.6
SELECT foos.`id` AS t0_r0 ... FROM foos LEFT OUTER JOIN tickets ON
tickets.id = foos.ticket_id WHERE (project_id = 1) # works fine
Rails 2.1.0
SELECT * FROM `foos` WHERE (project_id = 1) # JOIN is missing and
Rails complains about missing project_id column in foos table
Foos table doesn''t have project_id column, but tickets table does. Foo
belongs_to :ticket and Ticket belongs_to...
2005 Feb 07
1
how to add a windows share
I have a msaccess program that is hard linked to a windows computer on
the network (and I am not allowed to change the source :-( )
In some parts it seeks its files in \\computer1\c\Program Files\Program
I have mounted computer1 using samba to ~/computer1 (with full
read/write access)
I have made a symbolic link in ~/.wine/dosdevices/unc according the
winehq documentation. But I can't
2010 Aug 05
10
Starcraft 2 Access Violation
SC was running fine until I changed graphics cards. (nvidia gt120 to quadro fx 3800) Now I can log in but If I try to continue campaign or play a bnet game it crashes with an Access Violation claiming the memory cannot be read or that it can't be written. I've upgraded the kernel, installed the latest drivers from nvidia and I'm running the latest wine build. Anyone have an idea of
2007 Nov 26
0
rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems
...s/test/bradtest/spec/models/tiger_spec.rb:1:in
`require''
from
/Users/Brad/dev/ws/fb3ws/test/bradtest/spec/models/tiger_spec.rb:1
Program exited.
-----------------------------------
Anybody know why this is? I did see this post on the Macromates site:
http://macromates.com/ticket/show?ticket_id=F4DA8B03
Adding his suggested "$:.reject! { |e| e.include? ''TextMate'' }" line at
the top of my tiger_spec.rb document yields the following errors when
the same TextMate command is run:
-----------------------------------
RubyMate r8136 running Ruby r1.8.5 (/usr/local/b...