search for: issue_id

Displaying 7 results from an estimated 7 matches for "issue_id".

2006 May 10
4
Single Table Inheritance problem
...d::Base end class Article < Item belongs_to :page end Page Model: class Page < ActiveRecord::Base end class Issue < Page has_many :articles end In my controller, when I call @page.articles I am getting the following problem: Mysql::Error: #42S22Unknown column ''items.issue_id'' in ''where clause'': SELECT * FROM items WHERE (items.issue_id = 4) AND ( (items.`type` = ''Article'' ) ) I see exactly where the snafu is ''items.issue_id'' should be ''items.PAGE_id'' (caps for emphasis). I assume eith...
2005 Jul 08
3
Problem with script.aculo.us 1.0
I just upgraded to the new version and now my storable containers are not working. here is my code. Sortable.create("leadstories", {handle:''handle'',tag:''div'',containment:''leadstories'',onUpdate: function(element) { new save_order(issueId,Sortable.serialize(element)); }}); Sortable.create("rightnav",
2006 May 01
0
Testing File Upload error
...an error for the test. However the error is not consistant, In my action I create two objects based on the single form (one is a child of the first). I have recieved template not found for action create errors which is true as create is not a page, as well as Mysql::Error: Column ''issue_id'' cannot be null:. Any thoughts? Am I going about testing a file upload wrong? the form and actions work perfect in my dev environment where I upload and fill out the form manually but in test it does not. Thanks Andrew
2006 Apr 28
0
Add extra data to objects in an instance variable?
...I wanted to print the time it was last updated. This should come from the most recent comment added, or if there are no comments added we fall back to the creation time of the issue: <% @last_update = Comment.find(:first, :order => ''added desc'', :conditions => ["issue_id = ?", issue.id]) %> <% if @last_update %> <%= @last_update.added %> <% else %> <%= issue.added %> <% end %> This all works fine, however I now want to order by this data in the paginator. I assume that I need to run though a loop adding some data to...
2005 Mar 01
0
has_and_belongs_to_many problem
...letterers, :class_name=>''Creator'', :association_foreign_key=>''creator_id'', :conditions=>''creator_job_id=5'' class Creator < ActiveRecord::Base has_and_belongs_to_many :issues My join table looks like this: creators_issues issue_id INT creator_id INT creator_job_id INT If I use this code, it still deletes all instances of that creator: creator = @issue.writers.find(1) @issue.writers.delete(creator) Do I need to specify the Delete SQL statement for the habtm association? I haven''t seen sample code for it, so I&...
2009 Sep 30
17
Apache2.2 + what to get Rails
Me: not experienced with Rails or Ruby, Problem: Ubuntu 9.04 server in my shop ...couldn''t get Apache2.2 + Passenger + Rails to work for Redmine. (No answer at Redmine list and I don''t think its their problem anyway). Also couldn''t get Apache2.2 and just Rails to work, though some people said it would. Webrick works. Goal: run Redmine on a server that also runs PHP
2005 Nov 16
19
Concerns over Rails' handling of tests
Sorry if this comes across as a bunch of disjointed thoughts...I''m just trying to put my thoughts down and I''d like to know what other people''s opinions on the subject are. I''ve been working with Rails for 3 or 4 months now and I''m constantly trying to look at ways of improving my testing techniques, especially when it comes to TDD. I have a few