similar to: habtm questions

Displaying 20 results from an estimated 300 matches similar to: "habtm questions"

2006 Mar 16
2
how to limit standard layout on action
I have an action/view that I need to return only data (other external processes query this action/view) but I need the standard_layout template to be attached to the other actions/views in the same controller. ie, the editing of the data in the model needs to include all the navigation, except one view which should just return a text/plain output. how do I say "include
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box that populates 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])
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
2005 Dec 15
2
efficient INSERTS
Hi, I''ve got the following models: Company Package with a habtm relationship. In my controller, I have a ''dispatch'' action which does the following @companies.each do |company| @packages.each do |package| company.packages.push_with_attributes(package, :sent_on => Time.now) end end my table ''companies_packages'' therefore lists which
2011 Sep 04
2
has_many :through basic fubar
I''m trying to do, what seems like, a very basic join. However, the association just doesn''t seem to work. I''m sure it''s something very simple but I don''t know what. class Role < ActiveRecord::Base belongs_to :packages belongs_to :users end class Package < ActiveRecord::Base has_many :roles has_many :users, :through => :roles end
2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
This SystemStackError is driving me crazy. It only takes place when testing with WEBrick - I can''t reproduce it with any tests. It is caused by calling the "missing" id method (base.rb:2435) on my ActiveRecord class. WEBrick and my tests are running as the same user, with a `ulimit -s` of 10240. Plus the query works sometimes so I don''t think this matters.
2006 Feb 14
0
rubyforge-0.1.1
SIMPLIFY SHARING YOUR RUBYGEMS ON RUBYFORGE! ~> gem install rubyforge SYNOPSIS rubyforge [options]* mode [mode_args]* DESCRIPTION simplistic script which automates a limited set of rubyforge operations MODES setup() initializes your .rubyforge directory. you need to run this first before doing anything else. example : rubyforge setup login()
2006 Jan 25
1
Rails day 2: where is my association?
I?m following along a few tutorials on the web and trying to implement my own example, but I must be missing something because I can?t get has_many or belongs_to to work like I expected. now I have watched all the videos and made a cookbook several times with different interfaces. what I''m looking for is *not* a code snippet to solve something (because I already have that),
2013 May 04
0
[PATCH] Downloads section: link to downloads.xiph.org
In downloads.html, link to downloads.xiph.org instead of SourceForge for source tarballs. Also includes a minor language fix in developers.html. --- developers.html | 2 +- download.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/developers.html b/developers.html index 149b6b5..87f0a9a 100644 --- a/developers.html +++ b/developers.html @@ -47,7 +47,7 @@
2006 Apr 03
1
singular table names testing
I''ve demoed my rails app and now have to move it to a MSSQL DB. the big problem I''m running into is the table name conventions I have to use. I have to use names like tbl_Transfer & tbl_User. In my tests on the console, I am trying myvar = tbl_Transfer.find_by_sql("select top 1 * from tbl_Transfer") NameError: undefined local variable or method
2006 Mar 01
2
kickstarting with rails routing problem
I''ve rewritten my kickstart cgi in rails with DB acces to the host list and the testing is perfect. I can send the macaddress in the HTTPrequest Header, rails looks up the macaddr in the machine db and spits back out a kickstart file for the machine.. however in real world usage what I get is a request for http://server//kickstarts/kickme which rails fails with 192.168.20.176 - -
2005 Dec 31
7
Dynamic form? Not really!
Hi guru''s out there, Im happilly coding my first rails app, and all goes well. I find myself manually coding in a particular field all the time (company_id), that relates the contact to a company. The total coding of this form seems somewhat much. Could somebody tell me what Rails power I''m possibly missing and stuborn as I am trying to do myself? I was wondering if the
2010 May 11
2
AEC - Echo is cancelled however.....
I usually use the cross-correlation between the speaker signal and the mic signal. It works pretty well. The problem is the you need enough data in order to get a good S/N. I compute the cross-correlation between 1.5 second data of each signals. In this way the application detection of any anomalies is quite slow. I am looking for something faster, but I fear it will be something very application
2010 May 10
6
AEC - Echo is cancelled however.....
1) Everytime a participant speaks there is a echo for a short duration (maybe a word or two) but as the participant continues to speak without a any break the echo is 95% cancelled (i.e there is a feeble echo still present if observed very carefully). 2) The moment the participant stops / pauses speaking and start talking again, scenario 1 is repeated as if the echo state has been re-initialized
2010 May 11
2
AEC - Echo is cancelled however.....
2010/5/11 Elston Sa <jose at rebaca.com>: > Is there an API in speex or have you implemented your own? I don't know if there is an API in speex for this, probably not. There is a test for AEC which does something very similar. I implemented it starting from a FFT library. It is quite easy to do. > > I am currently trying to find one. But if you could point me to one it will
2013 May 15
0
[PATCH 2/2] Fix dead links and update news
I scanned the website with linkchecker and found quite a lot of dead links. This commit fixes or removes them. --- developers.html | 2 +- documentation_tasks.html | 2 +- download.html | 14 +++++++------- faq.html | 2 +- features.html | 2 +- feeds/feed.xml | 8 ++++++++ format.html | 8 ++++----
2010 May 10
1
AEC - Echo is cancelled however.....
Yes. I guessed that too, however I am not sure why it keeps repeating every time the user stops / pauses and starts speaking again in a single session. I am using a laptop with standalone speakers. For echo cancellation to work one has to make sure that the ref and echo buffers are synchronized. I guess this is the most common problem. -Elston -----Original Message----- From: Anton A.
2011 Jan 08
9
options_for_select.
Even reading the documentation I can not figure out what is the select_tag difference between this: <% = select_tag (bags [], "options_for_select (bags.collect @ {| bb | [bb.bag_type, bb.id]}, ruser.bags.collect @ {| ub | ub.id}), {: multiple => true,: id => "bags"})%> and this: <% = select_tag "bags [], " options_for_select (bags.collect @ {| bb
2007 Feb 16
1
My Fashon is in My Hands - what about You
*Hand bags Collection* *Fashon in Hand* [image: Latest Fashon Purses] <http://hand-bags.50webs.com/> *Fashon bags* *Ladies Handbags* *Wallets* ** *Gift packs* ** ** ** *Handbag Site. <http://hand-bags.50webs.com/>* --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2013 May 15
0
[PATCH] Fix dead links and update news
I scanned the website with linkchecker and found quite a lot of dead links. This commit fixes or removes them. --- developers.html | 2 +- documentation_tasks.html | 2 +- download.html | 12 ++++++------ faq.html | 2 +- features.html | 2 +- feeds/feed.xml | 8 ++++++++ format.html | 8 ++++----