search for: ruparel

Displaying 19 results from an estimated 19 matches for "ruparel".

2008 Apr 10
7
Trouble installing ruby-debug
I have installed ruby-debug several times without any problems, but am running into one when rebuilding my system. I am typing in the following command to install it as root: gem install ruby-debug -y I keep getting the following response: INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list ERROR: While executing gem
2009 Mar 24
12
MonkeyPatching ActiveRecord::Base class
I am trying to monkey-patch the ActiveRecord::Base class to incorporate a generic search class method so that it can be used by all model classes which need this functionality. Since model classes directly inherit from ActiveRecord::Base and unlike controllers and helpers, do not have an ancestor class defined, I think I am forced to open the ActiveRecord::Base class and patch it? May be I am
2010 Aug 17
3
Rails 3 flash message problems
The following code in my application_helper.rb class either eats the flash message or escapes it and does not display properly: # Outputs the corresponding flash message if any are set def flash_messages messages = [] %w(notice warning error).each do |msg| messages << content_tag(:div, content_tag(:p, html_escape(flash[msg.to_sym])), :class => "message
2008 Jul 01
8
InstantRails
Does anyone know if InstantRails will be upgraded for Rails 2.1? I see a lot of threads where people are discussing problems upgrading from 2.0 to 2.1. I would rather wait for InstantRails2.1 if it was close? Thanks. Bharat -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Mar 09
3
NetBeans 6.0/Script Console Window
Has anyone figured out how to turn NetBeans IRB window into Ruby on Rails script/console window where the gems like ActiveRecord, ActionPack etc are recognized? May be an easy one for the Rails Guru''s out there, not for me. By default, the NetBeans IRB window only loads Ruby. I am trying to see how well NetBeans 6.0''s Ruby/RoR support works fully realizing that it is an alpha
2008 Jan 21
4
Rails app cannot connect to Ferret server
I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret plugin from svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret I''ve followed the instructions here http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the server, and put acts_as_ferret :remote => true on one of my models (Ad) I can also start the ferret_server, but when
2010 Jun 24
1
Rails 2.3.2 upgrade to 2.3.8 problem
Upgrading to Rails 2.3.8 from 2.3.2 has broken views in my application. Specifically the field labels are all displaying </br> after the label text and therefore the alignment is all messed up. Instead of nicely aligning with the label text on the top and text entry field under it, they line up side-by-side and are misaligned. The tell-tale sign is the appearance of </br> tag after
2008 Jan 20
9
Ferret Gem Installation on Windows
...eans 6.0. I had successfully installed and built RailsSpace in InstantRails 1.7, but am trying to upgrade RailsSpace to RoR 2.0.2 using the code that Michael has kindly provided for us on the website. When I run the gem install ferret command, I get the following error: C:\Documents and Settings\ruparelb>gem install ferret Updating metadata for 35 gems from http://gems.rubyforge.org ................................... complete Building native extensions. This could take a while... ERROR: Error installing ferret: ERROR: Failed to build gem native extension. C:/InstantRails/ruby/bin/ru...
2011 Feb 19
2
Active Record Query
A course has many lessons and a lesson has many topics. A topic can have a recipe or vice versa, a recipe has many topics (optional). I need to come up with the most efficient way of querying the database to find those topics belonging to a course (via lessons of course) which have a recipe (in other words recipe_id is not null for this topic record). Simple but challenging :) Thanks for your
2008 Oct 07
4
Moving from one dns domain to another
My Rails 2.1 app is changing DNS domains. For example: From: www.oldcompany.com To: www.newcompany.com The app uses Apache2, mongrel_cluster, MySQL. I would like the existing users who visit www.oldcompany.com URLs to be: 1. Notified via an HTML page that the site has changed from oldcompany to new company and then redirect them to newcompany. This has to be done on the same server which gets
2009 Apr 24
11
We're sorry, but something went wrong.
Great. I''m in the development environment and that is the error message I get?! What good does that do me? I''m trying to follow along with the examples in AWDWR(3rd.), and I have this method in a store controller: private def find_cart Cart.new end That works fine, except that every request(initiated by clicking on an ''add to cart'' button) will
2009 Mar 14
9
null object pattern
I am trying to create a null object in my application. I would like to assigned a null user object for anonymous/ mot-logged-in user, i.e. if session variable has nil data. In my User model, I have created a subclass like this: class UnassignedUser < User def save false end def update false end def username "Unassigned" end def county_id
2008 Jul 16
0
Rails 2.1.0 and tzinfo plugin
I am upgrading a Rails 1.2.6 app to Rails 2.1.0 that had used tzinfo gem to manage time zones. Time zone support is built into Rails 2.1.0 and is based on the tzinfo gem. However, it is slightly different (I do not know how slightly) and causes a time based test to fail that passes in Rails 2.0.2 (since it did not have Time Zone support, it uses the tzinfo gem and the test works). If there is
2008 Sep 30
0
Tabbed Menus - link_to_unless_current
This is more difficult than I originally anticipated. Any help in figuring this out is most appreciated: This is a code snippet from my header.rhtml (or erb) file that draws tabbed menus: <ul> <% [["Home", "/home" ], ["Positions", "/company" ], ["Leads",
2010 Aug 15
0
Initializers from Rails 2 to Rails 3
I am upgrading an app from Rails 2.3.8 to Rails 3.0. I am finding that the initializers in the initializers directory do not seem to load. Is there any way to configure it. In general, what are the new load procedures for Rails 3? Thanks. Bharat -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2010 Aug 28
0
Rails 3 warning
../home/bruparel/.rvm/gems/ruby-1.9.2-head/gems/right_aws-2.0.0/lib/awsbase/support.rb:47: warning: toplevel constant ClientStatus referenced by Client::ClientStatus /home/bruparel/.rvm/gems/ruby-1.9.2-head/gems/right_aws-2.0.0/lib/awsbase/support.rb:47: warning: toplevel constant Client referenced by ClientComment...
2008 Jul 07
0
ActiveRecord in Rails 2.1.0 misbehaving for Aggregate Attr.
I am not sure if this is a bug in ActiveRecord or is this the intended behavior. If it is then it does not make sense to me. In a nutshell: If you change an aggregate object attribute created via composed_of method (see Agile Web Development - Second Edition Chapter 17 page 313 onwards) and then save the model, the change to the model (composite attribute specifically) will not be saved UNLESS
2007 Apr 11
1
Does Ruby 1.8.6 fix the Breakpointer problem?
Hello, Does anyone here know if Ruby 1.8.6 fixes the "BreakPointer" problem in Rails? The reason I ask is that I have been working with Curt Hibb''s InstantRails in Window (at last I have found a usable Rails system on Windows). Currently, I am on InstantRails 1.6, but Curt has made available InstantRails 1.7 which has the following components: Instant Rails 1.7 contains the
2009 Apr 12
3
Multi-button form
It cannot be this difficult, especially in rails. Here is my form code in a partial for the index action of a controller: <% form_tag({:controller => controller_name, :action => ''index''}, {:method => :get, :class => ''form''}) do %> <div class="columns"> <div class="column left"> <p>