similar to: Rails engines question

Displaying 20 results from an estimated 40000 matches similar to: "Rails engines question"

2012 Apr 12
6
beginning_of_month problem
Rails 2.3.2, Ruby 1.9.3 I want to get all records for one month from charges table. recs = Charge.where(["date >= ? and date < ?", t.beginning_of_month, t.next_month.beginning_of_month]) and this transforms into this query on PostgreSQL SELECT "charges".* FROM "charges" WHERE (date >= ''2012-03-31 22:00:00.000000'' and date <
2009 Mar 25
3
List of databases supported by Rails
Where can I obtain list of databases supported by Ruby on Rails? Thanks TheR -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2012 Oct 18
1
routing issue with mounted engine - Rails 3.2.8
I mounted the Forem::Engine in my app MyApp::Application.routes.draw do scope "/:locale" do ... resources :sites, :only => [:none] do get ''home'', :on => :collection get ''events'', :on => :collection end .. mount Forem::Engine, :at => "/forums", :as => :forums, constraints: lambda { |r|
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails? by TheR -- Posted via http://www.ruby-forum.com/.
2013 Jan 02
2
How to move rails 3.2.8 project from ubuntu to windows7?
Currently, I have xubuntu installed on a bootable 16gb usb drive - the rails app lives on this drive. This is for the benefit of a friend that uses a win7 laptop - she boots from the usb drive to run the rails app - works fine. I would like to have this app run in windows, so she doesn''t have to reboot to use it. I see that I can install rails via rubyinstaller
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all. I have two apps. One is a rails3 app and the other is a rails 2 app. Using proxying I am routing actions in the myapp.com/foo to the rails2 app. It almost works! I can set a session variable and a cookie variable on the first app (myapp.com) and then read them on the second app (myapp.com/foo). It only works the first time though. If I go back to myapp.com and then revisit
2012 Oct 11
2
Coupure de connexion entre Rails 3.2.7 et Postgres 8.4
Bonjour à tous, Je développe une grosse application en Rails 3.2.7 qui est connecté à une BD Postgres 8.4 installée sur la même machine. L''application s''exécute sur Apache avec le module Passenger. L''application est constamment utilisée par une centaine d''utilisateurs et ne pose aucun problème pendant plusieurs heures puis, d''un coup, Rails ne
2011 Jan 15
0
edge rails 3.1beta
Hi all, I just decided to switch to edge rails. So, I added the following gem ''rails'', :git => ''git://github.com/rails/rails.git'' gem "rack", :git => "git://github.com/rack/rack.git" to my Gemfile. As soon as I tried to run my app, one of my controllers throw this error: ActionView::Template::Error (undefined method `[]''
2012 Jun 08
1
[Rails 3.2.5] Rails: unit test fixture_path : fixture_file_upload cannot find the file ...
I am trying to perform a test unit, using FactoryGirl include ActionDispatch::TestProcess FactoryGirl.define do factory :article do ....... photo { fixture_file_upload ''/files/test.jpg'', ''image/jpg'' } end end IN mt test_helper.rb I defined the fixture_path def fixture_path File.dirname(__FILE__) + "/fixtures/" #
2012 Aug 17
5
How to Include Gem in Different Path
Hi, I just tried Ruby on Rails (with RailsInstaller 2.1.0) and it works fine on my PC. However, when I put this on the website, I got the following error message: Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound) The problem is that the website has multi_json 1.0.4. The website allows me to download my own gems, but after the process, it is located at
2012 Aug 28
4
ArgumentError in HomeController#index
Hey guys, I''m new to ruby/rails and trying to sort something... I just created an app with composer, http://railsapps.github.com/rails-composer/ I used the command: rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb I set up the rails server, and tried to load the app on localhost:3000 However, I end up with: ArgumentError in HomeController#index
2008 Nov 06
4
SQL question
This works as expected in sqlite3 select id, title || body as tb from docs where tb like ''%en%'' But fails in postgres because tb is unknown. and works in ms-sql like: select id from docs where title+body like ''%en%'' I didn''t tried Oracle but I guess it has its own sintax too. So my questions are. 1. Is there universal SQL syntax to support this
2013 Mar 03
1
Deploy with Capistrano. Bundle install freezes indefinetly.
I am fighting with this for 5 days... i''m getting crazy! Here is my deploy.rb: require "bundler/capistrano" require "rvm/capistrano" # Load RVM''s capistrano plugin. set :rvm_ruby_string, :local # Or whatever env you want it to run in. ''1.9.3'' set :domain, ''www.xxx.com'' set :application,
2013 Apr 05
2
How to manage data in MongoDB
I''m working with MongoDB but i feel impatient with it. I want tool manage MongoDB same as PHPmyadmin(Mysql),Sqlite manager... I found some tool for this but I don''t know what I shall use please give me some advice for this!Thanks... -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2013 Apr 27
3
where exactly are gems?
when you add a gem to the Gemfile and then run bundle install, where does the command look for the gem? If you had "gem ''rails'', :git => ''github.com/rails/rails.git", I assume it would update your system .rvm gems directory with the latest github commits. But what is the default repository that bundler looks for gems? -- You received this message because
2011 Jul 25
3
Rails 3.1 Engines: Full vs. Mountable
Hi all, I was hoping someone could please clarify the differences between a full engine and a mountable one. I have noticed the following: ** Full Engine ** - With a full engine, the parent application inherits the routes from the engine. It is not necessary to specify anything in parent_app/ config/routes.rb. Specifying the gem in Gemfile is enough. The engine routes are specified as: #
2010 Sep 24
2
Rails 3: Engines or/and Railties. How to use them?
Howdy all, I have spent a couple of days trying to figure out how to put different pieces of our (quite large) app into components. The idea was to use Rails 3 Engines/Railties and place them in /lib. Each would have its own [app/views, app/helpers, app/models and app/ controllers] We also needed an ability for those components to override views/ helpers/controllers in the parent
2012 Sep 26
1
OLE2 signature is invalid
I am getting this error while using spreadsheet_on_rails -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to
2010 Apr 24
1
Rails (3) Engines and Plugins - How to mix application and vendor code?
I''m trying to create several large applications that share 60-80 percent of their functionality. I''d like to find some way to abstract the common functionality into a gem, plugin, or engine which I can then deploy as many times as needed for each application. The catch is each app will definitely need that 20% extra functionality and it may include changes or enhancements to
2012 Oct 31
2
What is Formtastic and SimpleForm gem ? Is any one of this is by default included in Rails ?
Hi all, I read Formtastic and SimpleForm gem. I am using 3.4 Q 1 Is any one of this is by default included in Rails ? Q2 Any advantage of this gems over simple form tags ? As per my knowledge we are using form helper , but still i raised the qustion ? Thanks Regards Fahim Babar Patel -- You received this message because you are subscribed to the Google Groups "Ruby