Re: [Rails] Rails tutorial

2014-12-29 Thread Colin Law
On 28 December 2014 at 22:09, Etienne Brunet etiennebru...@gmail.com wrote: Hi, I'm following the https://www.railstutorial.org I'm now at chapter 10. Since yesterday all my 42 tests are RED and reports the same error : ERROR[test_should_get_new, UsersControllerTest, 0.274138782]

[Rails] Re: how to remove (and resuse) all existing constraints from ActiveRecord::Relation

2014-12-29 Thread Frederick Cheung
On Monday, December 29, 2014 1:16:40 AM UTC, Josh wrote: I'd like to remove all existing constraints from an ActiveRecord::Relation and leave the rest in-tact. I am *not* looking for #unscoped since I would like to keep any joins/order clauses around. Additionally, I would like to

[Rails] Scaffold to existing SQL Server database

2014-12-29 Thread Nelson André
Hello all, I'm rather new to RoR and I'm checking if RoR is the way to go in my scenario. I've got a Client/Server application built on top of SQL Server with some Win32 screens. We would want to build a Web version of our application but keeping the database because we use a code generation

Re: [Rails] how to remove (and resuse) all existing constraints from ActiveRecord::Relation

2014-12-29 Thread Jason Fleetwood-Boldt
You can use a .try{ |query| ... } block inside the Arel chain. I think to achieve what you want you would do something like Order.where(id: 1).try{|query| if continue_with_query; query; else; Order; end} Notice that inside the try block I'm passing back either the query (with Arel

[Rails] Re: Rails tutorial

2014-12-29 Thread Etienne Brunet
Ok thank you. I found the error, It is weird because all test where failing for 1 syntaxt error... On Sunday, December 28, 2014 5:09:12 PM UTC-5, Etienne Brunet wrote: Hi, I'm following the https://www.railstutorial.org I'm now at chapter 10. Since yesterday all my 42 tests are RED and

[Rails] Re: How can I use Rails Erubis templating standalone?

2014-12-29 Thread Abhay Kumar
Find my answer below: http://stackoverflow.com/questions/27620228/ruby-2-1-with-erubis-template-engine/27690911 -- 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 unsubscribe from this group and

Re: [Rails] Re: Rails tutorial

2014-12-29 Thread Colin Law
On 29 December 2014 at 14:49, Etienne Brunet etiennebru...@gmail.com wrote: Ok thank you. I found the error, It is weird because all test where failing for 1 syntaxt error... A syntax error is detected when the code is loaded and the whole app is loaded for any test. Colin On Sunday,

[Rails] Get 92% Discount on The Ruby on Rails : Rookie to Rockstar Bundle Course from Udemy

2014-12-29 Thread Sumeet Sharma
Get 92% Discount on The Ruby on Rails : Rookie to Rockstar Bundle Course from Udemy using link below: http://goo.gl/dFdDc8 Course Highlights: 1) The Startup's Guide To Web Development With Ruby On Rails. 2) Ruby On Rails For Beginners. 3) Learn Ruby On Rails From Scratch. 4) Advanced Ruby

Re: [Rails] how to remove (and resuse) all existing constraints from ActiveRecord::Relation

2014-12-29 Thread Jason Fleetwood-Boldt
You can do that inside a .try{} block too, same idea: Order.try{|query| if x==1 query else query.unscope(:where) } On Dec 29, 2014, at 4:30 AM, Frederick Cheung frederick.che...@gmail.com wrote: On Monday, December 29, 2014 1:16:40

[Rails] Multiple Databases w/ RoR 4.2

2014-12-29 Thread dwilde1
Hi, all - I'm prototyping a large application which will eventually have multiple open connections to MySQL and Neo4j data persist stores (aka databases). I would also like to maintain the existing development/test/prod switch behavior. How can I configure this, or where would I start to

[Rails] Re: Ruby code Injectors: Closures as Modules: Jackbox

2014-12-29 Thread Lou Henry
ANNOUNCING a new release of Jackbox. Jackbox toys with the ideas of closures as modules. In it you'll find a series of new takes on ruby that are sure to spike you interest. With it we have come up with a solution to the decorators handicap in ruby and introduced some new constructs for code

[Rails] An error occurred while installing ruby-oci8 (2.1.7)

2014-12-29 Thread Chandra Sekhar
Hi , I am getting into the below error while running bundle from bamboo server. Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. build 29-Dec-2014 15:13:05 build 29-Dec-2014 15:13:05 /usr/local/bin/ruby extconf.rb build 29-Dec-2014 15:13:05 checking

Re: [Rails] Ruby code Injectors: Closures as Modules: Jackbox

2014-12-29 Thread Scott Ribe
On Dec 29, 2014, at 12:44 PM, Lou Henry li...@ruby-forum.com wrote: If you feel the need to decompile the code even though WHAT is contained in it is not worth the trouble you are hereby formally instructed to: Cease and Desist. Bullshit. Jackbox and the code in it are copyrighted. You

[Rails] Re: how to remove (and resuse) all existing constraints from ActiveRecord::Relation

2014-12-29 Thread Josh
Sounds like you are looking for some_scope.unscope(:where) This doesn't appear to return the existing constraints for me to re-use them. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop

Re: [Rails] Ruby code Injectors: Closures as Modules: Jackbox

2014-12-29 Thread Jason Fleetwood-Boldt
I believe that’s called “free as in beer” not “free as in speech” Scott is absolutely correct — in Galoob v Nintendo (1992) the supreme court established that users have a right to modify copyrighted works for their own use (but not necessarily re-distribtue them). This software appears to

[Rails] Re: Multiple Databases w/ RoR 4.2

2014-12-29 Thread Chrs Grgg
If you want to have separate models for MySQL and Neo4j, look into the Neo4j gem, https://github.com/neo4jrb/neo4j. It provides ActiveRecord-like modules that let you build Neo4j models and work with the database easily. It has a great community and development on the gem is very active. If