similar to: Page does not seem to be reloaded on prod server

Displaying 20 results from an estimated 300 matches similar to: "Page does not seem to be reloaded on prod server"

2008 Jul 30
4
AssociationTypeMismatch: Genre expected, got String
Hi all I have the following 2 models: class CompactDisc < ActiveRecord::Base belongs_to :genre end class Genre < ActiveRecord::Base has_many :compact_discs end I have created a select box for my form so I can choose a genre for every compact disc: <p> <b>Genre</b><br /> <%= f.select :genre, Genre.find(:all).collect{|p| [p.name, p.id]}, :selected =>
2007 Jan 05
4
How To Spec Controllers with Finders
Given this code (which renders rjs), I''m faced with the fixture- driven way of spec-ing or mocking. How the heck to you mock this so the code at line (2) and (4) work right? I''m still struggling with mocks but it seems like this can be done. Forgive the naivety of this question. 1. def change_quantity 2. @line_item = LineItem.find_by_id(params[:id]) 3. unless
2006 Sep 03
2
Undefined method "xxx" of a model when calling a helper
Hi all I''m creating a shop page. I have a cart model that looks like the following: class Cart attr_reader :line_items def get_line_item id @line_items.each do |l| return l if l.id == id end end def initialize @line_items = [] end def empty! initialize end def empty? return true if @line_items.empty? false end end And I have some
2006 May 24
22
Components going out of style?
I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I''m considering a menu sytem for a website that depends heavily on the users permissions to decide which menu options a user would need to see. I thought that components, since they have the logic in the controller and
2005 Nov 11
2
Migrating same domain
This weekend, we're replacing a customer's Windows 2003 server with a Samba box. They lost their Windows media and we can't reset the administrator password, so we can't even login to the server to examine it. The best we can do is to boot Knoppix and copy the filesystem onto an external USB drive, to recover their files. We're not sure how we will recover their Exchange mail
2009 Nov 12
3
"POTS 4K linear codec"
I am not sure what the problems are and the reasons for the basic 64K modems used in VOIP are. I understand the compressed codecs that get the bandwidth down to 20-30 K. And perhaps the 64K units give much better potential audio than you would get on a normal POTS line. But, as phone circuits VOIP/SIP doesn't seem to perform as well as plane old phones. Multiple transcodings cause issues.
2009 Sep 24
8
Drop down list ?
Hi Gurus, I''m trying to tackle a drop down list. I have category and item dbs, and they''re wired up with category has_many :items and item belongs_to :category, and an item has a category_id. I have this code in my new/edit.html.erb for item: <%= f.collection_select :category_id, Category.find_main, :id, :header, {}, :multiple => false %> And a pretty drop down list
2008 Nov 15
4
data not being saved
I am trying to save data entered in a form and nothing seems to be saving. What do you I have to look at to ensure everything is set-up correctly? I have looked in my database.yml file and all looks good and the database that I am trying to use exist. Thanks, -S -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2007 Oct 17
9
@session['user'] vs session[:user]
This might seem really simple to some but just wanted to ask: what is the difference between @session[''user''] and session[:user] ? and how would you use each? And another question, I have the following code: def get_customer if @session[''customer''] @c = Customer.find(@session[''customer'']) end end private def
2018 Jun 27
2
How to Join Mac OSX workstation as AD domain member
On Wed, 27 Jun 2018 13:58:46 -0400 Mark Foley via samba <samba at lists.samba.org> wrote: > Well, I've made some progress. Excuse the detail, but this might help > others as I've so far found NOTHING on this, including with the Mac > Enterprise maillist (so far). > > If I unchecked all the Directory Utility mapping options, I was able > to log in! Yeah! But, the
2008 May 20
4
are 588 sample frames subset or nonsubset?
Hi I am thinking of ripping albums to a single flac file with embedded cuesheet. As track and index points have to be on a 588 sample boundary due to the CD TOC standard working in 588 sample frames, I thought it may be beneficial to rip CDs with a blocksize of 588 samples. According to the format page on sourcefourge a stream is subset if "The blocksize bits in the frame header must be
2010 Sep 22
20
problem in downloading large file with apache+mongrel
hii all, am using apache as frontend to mongrel and loaded xsendfile module in apache ,am looking for 1 GB of download .this is download routine def download @stream = Stream.find(params[:id]) send_file(@stream.location,:filename => @stream.name,:disposition > ''attachment'',:x_sendfile => true ) and And this is how it is processed Processing
2008 Sep 29
4
RJS is not loaded
Hello, I have here an issue which is really critical for me (it for my university work and I would like to not delete this feature). It based on a Rails 1.x tutorial which I use now under Rails 2.x. It contains the refreshment (adding content or records) of an div via RJS/JS. I access the RJS via (Controller): respond_to do |format| format.html { redirect_to :controller =>
2006 Aug 09
0
Deployment: Best way to switch between test and prod envs.
All, Not looking for advice on the relative wisdom of my actions :). I have a Rails app. running under Apache 2/fastcgi that I would like to switch from using the test environment (database) to using the production environment (database). I can do this by hand by modifying my xx_mod_fastcgi.conf file and setting RAILS_ENV to be the appropriate value in the command that initializes my
2006 Jul 26
2
How to determine whether dev,test or prod from the code
When in a controller, how would I determine which environment I am currently running in? (Development,Test,Production) Thanks, Don Mc -- Posted via http://www.ruby-forum.com/.
2006 May 22
1
Model Modules, Dev vs Prod
I have a pretty complex model with many modules and I have been trying to keep it clean, but I find that loading the model in development mode using WebBrick is much more lenient than production mode with lighttpd/fcgi. For instance, if I neglect to create a dedicated file that declares the module then I run everything in development mode it works fine, but as soon as it is deployed I
2006 Apr 07
0
Rails Prod Win 0.2
Hi all, just a quick post to inform you that I''ve released my little project Rails Prod Win on Sourceforge: http://sourceforge.net/projects/rails-prod-win I will add web contents pretty soon but I thought you might like to have a go before I get a chance to complete the web page. Apologies for those of you who already knew from my previous thread but some of the people interested in
2008 Sep 26
1
Capistrano SVN help: conflicting copies on prod and local
I''m sure this is an easy fix for folks more familiar with subversion than me, but here it goes: I''m running Capistrano and have successfully deployed my app from my local machine to my live server. The repository is on the server as well. What happened is I had to generate some files on the live server in the railsapp/current directory. So now when I try and commit something
2012 Aug 21
1
Ways to poke and prod Dovecot?
I'm a newbie and want to learn more about Dovecot. I can install it in a test bed but am not sure how to run it so it shows me what it's doing but i'm not actually mailing stuff. Is there a doc somewhere? Thanks! Leam -- Mind on a Mission <http://leamhall.blogspot.com/>
2023 Apr 17
0
sum(), min(), max(), prod() vs. named arguments in ...
? Sun, 16 Apr 2023 01:34:33 -0400 Mikael Jagan <jaganmn2 at gmail.com> ?????: > Forbidding or warning against tagged arguments other than 'na.rm' > would be quite intrusive, since it is not uncommon to see > do.call(sum, <named list>). Thank you for providing this counter-example! I did suspect this to be a non-starter, but didn't have a proof. > str(...)