similar to: how to limit standard layout on action

Displaying 20 results from an estimated 1300 matches similar to: "how to limit standard layout on action"

2006 Mar 09
4
habtm questions
I''ve got some of this working but other parts are ellusive. I have CREATE TABLE `bags` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '''', PRIMARY KEY (`id`) CREATE TABLE `packages` ( `id` int(255) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '''', PRIMARY KEY (`id`) CREATE TABLE
2006 Jan 27
2
simple stuff in rails rhtml
after playing with the DB interaction I''m moving on to doing some file IO. but I''m completly lost as to where to put the code and how to call it. I''m trying to get a list of files in a directory and it''s not obvious to me how to do this in Rails via a controller method. so ruby code is Dir.entries("testdir").last and html code is <%=
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 - -
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
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.
2006 Aug 31
2
vim timestamp issues on CIFS mounted shares
First: this is my first post on this list so any suggestions, let me know. I recently had to make the move from SMBFS to CIFS when I upgraded from Fedora 4 to 5. Changing settings in my /etc/fstab was easy and no errors come up but now I'm having an issue very similar to post I found on your list that got no response back in April: http://lists.samba.org/archive/samba/2006-April/119813.html
2006 Mar 28
4
1.1 won''t install!
I get this result in Terminal (10.4.latest) pb12-olivier:~ ambush$ gem install rails --include-dependencies Attempting local installation of ''rails'' Local gem file not found: rails*.gem Attempting remote installation of ''rails'' ERROR: While executing gem ... (Errno::EACCES) Permission denied - /usr/local/lib/ruby/gems/1.8/cache/activesupport-1.3.0.gem
2006 Feb 24
6
Changes to Class File Not Being Recognized by Webrick
Newbie, having good luck with Dave Thomas'' book ''Depot'' application until I discovered that changes to one of my .rb class files are not being recognized until I bounce the webrick server. Any ideas on this? Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Mar 24
3
generating a controller that inherits from a base controller
how can I generate a new controller that inherites from another bas controller? using: ruby/script generate myNewController command? -- Posted via http://www.ruby-forum.com/.
2006 Apr 11
4
find(params[:id]) question
Admin Controller - def show @wizard = Wizard.find(params[:id]) end View - <td><%= link_to ''Show'', :action => ''show'', :id => wizard %></td> URL - http://localhost:3000/admin/show/1 I want user_name (one of the columns in the database) instead of the id to show For example:
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi, when I define a db column to be non-nullable or of length 20 or as numeric, I would expect rails to validate that, but that doesn''t seem to be the case. Any idea why that is? The metadata is accessible, at least in the mysql case. I am using rails 1.0 with mysql 5. Cheers, Mariano
2006 Mar 14
5
GROUP BY and SUM
I have orders, order_items, and products. I want to collate several orders so that I can get a SUM of quantities ordered for each product etc. Can I say something like (the below gives an error on :sum, and ignores :group) OrderItem.find(:all, :sum => ''quantity'', :group => ''product_id'', :include => [:order, :product]) I want to get back a
2006 Mar 21
4
habtm > join()
I''m trying to pull ou the ''name'' field for each of my associated rows and pass it as a string of names. I''m missing something obvious here but I thought @bag.packages.name.join(", ") would work. do I have to loop through @bag.packages? that seems like the long way. thanks -zac -- Posted via http://www.ruby-forum.com/.
2006 Feb 23
5
layouts
I created a controller called reports, for which I didn''t have any model or tables. I wanted to use a menu/layout structure similar to all my other models/controllers and added a layout named reports which then gives me the menu/layout structure but is also now part of all my reports. That isn''t gonna work so I renamed reports.rhtml to reports_forms.rhtml (still inside my
2006 Mar 31
6
Calculating Dates
Hello, I am a complete newbie with Ruby and Rails. I am working on learning it by writing a project I was going to write in PHP using Rails. I am having a difficult time finding clear information on how I would do this. I need to take a date out of a table in my database and given another day calculate the next 28 day anniversery of the original date. This is used to calculate a delivery
2006 Feb 16
5
Firefox and IE performance with Rails App
In my rails application, certain computers were having huge problems. There were certain pages that were exceptionally slow, even to the point of timing out. Other computers did not have a problem. I finally found that Firefox was the difference. When using Firefox on those computers it works fine. The slow pages were typically posting a form with a couple hundred fields. This behavior was
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