similar to: Mongrel Malformed Request error - help!

Displaying 20 results from an estimated 1700 matches similar to: "Mongrel Malformed Request error - help!"

2009 Jun 13
3
How Can I insert another column data into the CSV file when I use FasterCSV?
Hi, All, Suppose I have a CSV file, there is data in it. * Column 1 Column2 Column 3 Column 4 Row1 a b c Row2 a2 b2 c2* You know, the column 4 is no data Now, I would like to insert data to Column 4, after save, the CSV file will be: * Column 1
2009 Jun 10
5
uninitialized constant ActiveSupport::Cache (NameError)
Hi After having updated some GEMS I get `load_missing_constant'': uninitialized constant ActiveSupport::Cache (NameError) on starting the server of a freshly generated rails project. Before, I already had Rails 2.3.2 projects succesfully running, now all of them generate this error. These are my GEMS: actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.1, 2.1.0) actionpack (2.3.2, 2.2.2, 2.1.2,
2009 Sep 03
5
Rails 3.o
So... "Beginning Rails 3" is supposedly due Sept 2009 http://www.apress.com/book/view/9781430224334 "Rails 3 in Action" is due February 2010 (est.) http://www.manning.com/katz/ ... can we assume a beta release of Rails 3 is very close? Would like to invest in Rails 3 :)
2009 Jul 30
2
Can I turn off config.action_view.cache_template_loading in Production
I''ve got an app which users can edit the ERB templates for emails, the changes aren''t taking effect till the app restarts though because config.action_view.cache_template_loading = true I''ve seen various comments that suggest it has to be true when in Production for thread safety - is Rails actually running in a threaded manner yet? Surely this is a none issue at the
2009 Aug 23
4
Routing problems for different formats
I am having 2 similar problems with routing. 1. With Rails if I make a js request using jQuery I always have to append a ".js" extension to allow the request to be handled appropriately. If I don''t append a js extension I get html formatted data back. Using Merb this never happened and worked like I thought it should. 2. Today I am having problems allowing xml requests to be
2009 Jun 13
8
Removing routes to new, show, etc. in a model
Example model: demo --app ----Controllers ------application_controler.rb ------demos_controller.rb ----Models ------demo.rb ----Views ------demos --------index.html.erb (I want to keep this) --------edit.html.erb (delete) --------new.html.erb (delete) --------show.html.erb (delete) http://localhost:3000/demos/new (should not be a route) http://localhost:3000/demos/edit (should not be a route)
2009 Jun 13
2
Rake migration error
Hi, I am constantly getting an error when I use the rake command to do a migration or even use drop, this happened after I installed some plugins such as paperclip and seed-fu. The error is: rake aborted! uninitialized constant PKG_NAME /var/www/html/quote/Rakefile:10 The Rakefile looks like this: # Add your own tasks in files placed in lib/tasks ending in .rake, # for example
2009 Jun 14
6
Unable to make observe_field work
I can''t make it work. <%= text_field_tag :friend %> <%= observe_field :friend, :url => friendships_url, :on => :click %> <%= javascript_include_tag :defaults %> Raises the error:Can''t find variable Form. The generated html is: <input id="friend" name="friend" type="text" /> <script
2009 Jun 14
3
Rails I18n
Hi, I am trying to use i18n in rails. I want the language to be set first from params[:locale] (probably already in the url) then from the browser http header and lastly from the default_locale. Everything is fine. Now the problem starts, when I want to add a dropdown list to allow the user to change the locale. How do I force the page to reload with the new Locale? FYI, I tried using .js and
2008 May 20
5
How to write a test for validates_uniqueness_of
Hi, I have a spec it "should have a unique username " I have a code: validates_uniqueness_of :user_name Now, I don''t know how to test this code. In order to test this, do I need to run `save`? For example, @user = User.create(:username => "mike") @another = User.create(:username => "mike") @another.save.should be_false This messes up test
2009 Jun 14
5
Partials views and instance variables go nil
Hi everyone! Model: http://pastie.org/511290 Controller: http://pastie.org/511285 View new: http://pastie.org/511286 View _form: http://pastie.org/511284 When I hit submit button there''s an error for usuarios(users in portuguese) instance. It does not seems to save usuarios even though it seems to be posted by the form. Error: http://pastie.org/511292 Need some help here guys plz --
2009 Feb 18
4
expire_fragment with memcached
Hello all, We know that memcached or memcached-client doesn''t support regex... But It seems it doesn''t support expire_fragment either :/ I''m trying to use expire_fragment with memcached as following : expire_fragment(:controller => ''home'', :action => :list_posts) But apparently it''s not supported by memcached : RuntimeError (Not
2009 Sep 01
9
Ruby on Rails Project Opportunities
Hi I am currently recruiting for a number of freelance contracts and permanent internal positions, both junior and senior, for Europe''s largest and most dynamic Ruby on Rails development projects, offering the chance to work alongside some of the industry''s leading figures in the Web 2.0 development community. Selected locations include Germany (eg Berlin, Munich, Hamburg,
2006 Jan 23
1
ssl_requirement plugin: how do I override ssl_required?
The ssl_requirement plugin indicates that I can override the ssl_required? method. I want to use this facility to ignore the ssl requirement declarations when RAILS_ENV is anything other than ''production''. My question is, where do I override this? The relevant readme is: http://dev.rubyonrails.org/browser/plugins/ssl_requirement/README Also, does this plugin work with a
2008 Jun 07
3
Match render :nothing
Hello guys, Is there any way to match a render :nothing? I coudn''t find any way to do this so i''ve just changed my controllers to do a "head :ok", but it would be nice to know if there is any other way :) -- Maur?cio Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) Jo?o Pessoa, PB, +55 83 8867-7208
2009 Jun 05
1
Slow/unpredictive response of post_form from rails lib
Hi friends, I''m facing a very strange problem... I consume a webservice from within my rails app. I''ve written a thin wrapper around the webservice using Net::HTTP.post_form However, when calling the API from within my controllers, the API calls randomly fail, complaining about timeout. But - when I wrote a simple iterative test (500 iterations), calling the same webservice
2009 Jun 06
5
Rake Tasks
Hi Everyone, I just need some further help clarifying a custom rake task I''m building and the logistics of how it should be working. I''ve created a custom rake task in libs/tasks called scraper.rake which so far just contains the following: desc "This task will parse data from ncaa.org and upload the data to our db" task :scraper => :environment do # code goes
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :) I''m trying to run rcov on my specs here but i''m getting a lot of segmentation faults (and they usually happen at different places): /home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
2008 Oct 26
3
Undefined method f_title
Hi, This is my migration: class CreateSampleForms < ActiveRecord::Migration def self.add_data SampleForm.create(:name => ''Default (Empty)'', :f_type => ''Default (Empty)'', :description => ''Use this template to create a blank form.'') end def self.up create_table :sample_forms do |t| t.string :name, :null =>
2008 Oct 26
2
use Prawn to generate pdf
Hello: when i use Prawn to generate pdf file for download, i got a blank pdf file, can someone tell me why? require ''prawn'' class DownloadController < ApplicationController def download_pdf send_data(generate_pdf, :filename => ''test.pdf'', :type => ''application/pdf'') end private def generate_pdf