Displaying 12 results from an estimated 12 matches for "package_id".
2006 Mar 09
4
habtm questions
...Y KEY (`id`)
CREATE TABLE `packages` (
`id` int(255) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '''',
PRIMARY KEY (`id`)
CREATE TABLE `bags_packages` (
`id` int(11) NOT NULL auto_increment,
`bag_id` int(11) NOT NULL default ''0'',
`package_id` int(11) NOT NULL default ''0'',
PRIMARY KEY (`id`)
class Package < ActiveRecord::Base
has_and_belongs_to_many :bags
end
do I need this below? the HABTM tutorial doesn''t say I do.
class Bag < ActiveRecord::Base
has_many :packages
end
problem A:
I can edit a p...
2006 Feb 14
0
rubyforge-0.1.1
...ge create_package 1024 traits
rubyforge login && rubyforge create_package codeforpeople.com traits
notes :
in order to use group_ids by name, rather than number, you must edit the
rubyforge[group_ids] translation table in your config.yml.
add_release(group_id, package_id, release_name, userfile)
release a file as release_name under the specified group_id and
package_id.
example :
rubyforge add_release codeforpeople.com traits 0.8.0 traits-0.8.0.gem
rubyforge add_release codeforpeople.com traits 0.8.0 traits-0.8.0.tgz
rubyforge a...
2006 Feb 20
9
a complex availability problem
Ok, this is a hard one and I just thought I''d see if people on the
list had any suggestions on how they would approach this, I''ve not
started to implement the rails to handle this yet as I''m still at the
paper planning phase.
I''m building an app that has to handle availability for travel packages.
The complexity comes in that a person can choose a start
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
...the packages and crews im just wondering i why this
undefined method `[]'' for nil:NilClass`
i dont know what happened but it run few days ago and tested it once but
now it raises this error are there possible way to solve this?
def create
@package = Package.find(params[:package_crew][:package_id])
crew = Crew.find(params[:package_crew][:crew_id] )
@package_crew = @package.add_crew(crew.id)
if @package_crew.save
redirect_to {admin_package_crew_url}
end
end
thanks in advance more power to us all
i tried this
def create
#pid = params[:package_crew][:crew_id] if params[:...
2005 Dec 15
2
efficient INSERTS
...efore lists which company was sent which
package at what time.
If I''m sending 20 packages to 20 companies though, I generate 400 INSERT
statements. Is there a rails way of doing this more efficiently?
i.e. generating an SQL statement like
INSERT INTO `companies_packages` (`company_id`, `package_id`, ''sent_on'')
VALUES
(1, 101, 2005-12-15),
(2, 102, 2005-12-15),
(3, 103, 2005-12-15),
(4, 104, 2005-12-15),
(5, 105, 2005-12-15),
(6, 106, 2005-12-15),
(7, 107, 2005-12-15),
(8, 108, 2005-12-15),
(9, 109, 2005-12-15),
(10, 110, 2005-12-15);
Thanks in advance
Adam
___...
2013 May 04
0
[PATCH] Downloads section: link to downloads.xiph.org
...c-dev">contact the FLAC-dev mailinglist</a>. (For more information, see the <a href="license.html">license page</a>.)
<ul>
- <li><b>Source code</b>: <a href="http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12677">get stable releases from Sourceforge</a>; also includes documentation and build systems for Windows (MSVC++) and *nix,*BSD,OS/2,OS X (autotools). You can also take a look at the <a href="https://git.xiph.org/?p=flac.git;a%3Dsummary">Development <b>git repo...
2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
...ace ending before Set.empty?
at:
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
attribute_methods.rb:64:in
Here''s the relevant parts of my code:
class Package < ActiveRecord::Base
has_many :deliveries, #,:select=>''id, user, host, delivered,
region_id, package_id'',
:include=>:region,
:dependent=>:delete_all
def self.search(criteria)
raise ArgumentError, ''argument must be of type SearchCriteria''
unless criteria.is_a\
?(SearchCriteria)
clause = build_search_where_clause(criteria)...
2011 Sep 04
2
has_many :through basic fubar
...end
create_table "packages", :force => true do |t|
t.string "tracking"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "roles", :force => true do |t|
t.integer "user_id"
t.integer "package_id"
t.string "role"
end
create_table "users", :force => true do |t|
t.string "user_name"
t.string "first"
t.string "last"
end
With that, I can do:
@package = Package.new
@roles = @package.roles
@roles.inspect #...
2013 May 15
0
[PATCH 2/2] Fix dead links and update news
...c-dev">contact the FLAC-dev mailinglist</a>. (For more information, see the <a href="license.html">license page</a>.)
<ul>
- <li><b>Source code</b>: <a href="http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12677">get stable releases from Sourceforge</a>; also includes documentation and build systems for Windows (MSVC++) and *nix,*BSD,OS/2,OS X (autotools). You can also take a look at the <a href="https://git.xiph.org/?p=flac.git;a%3Dsummary">Development <b>git repo...
2013 May 15
0
[PATCH] Fix dead links and update news
...gi-bin/search_packages.pl?keywords=flac&searchon=names&subword=1&version=all&release=all">Debian's packages</a></li>
- <li><b>Windows</b>: <a href="http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12675">FLAC for Windows (command-line tools only)</a></li>
- <li><b>Mac OS X</b>: <a href="http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=32318">FLAC tools for OS X</a>. The .dmg file is an installer and...
2006 Jan 25
1
Rails day 2: where is my association?
...kage
script/server&
http://localhost:3000/packages
notice there is no group_id column. Why?
Ok so moving on to the association, docs say I need to associate groups
and packages
CREATE TABLE `groups_packages` (
`id` INT( 255 ) NOT NULL AUTO_INCREMENT ,
`group_id` INT( 255 ) NOT NULL ,
`package_id` INT( 255 ) NOT NULL ,
PRIMARY KEY ( `id` )
) TYPE = innodb;
class Group < ActiveRecord::Base
has_many :packages
end
class Package < ActiveRecord::Base
belongs_to :group
end
now the default scaffold list.rhtml has
<% for column in Package.content_columns %>
<td><%=h pa...
2013 Jan 01
0
[PATCH] Added some news (including FLAC development moving to Xiph.org), replaced cvs-links by git-links and changing most links to the bug tracker with the new sourceforge link-style (for example replaced http://sourceforge.net/tracker/.... with
...<br />
diff --git a/download.html b/download.html
index 2342710..fa594ad 100644
--- a/download.html
+++ b/download.html
@@ -95,7 +95,7 @@
<b>Source code</b>
<ul>
<li><a href="http://sourceforge.net/project/showfiles.php?group_id=13478&package_id=12677">FLAC full source code</a>; also includes documentation and build systems for Windows (MSVC++) and *nix,*BSD,OS/2,OS X (autotools)</li>
- <li><a href="http://cvs.sourceforge.net/cvstarballs/flac-cvsroot.tar.bz2">Nightly CVS tarball</a>; this...