Ruby on Rails 7 and Oracle Database - ruby-on-rails

I want to connect a Ruby on Rails app with an Oracle database but can't seem to figure out how to do it. I have tried to google out a guide but most of them are outdated and don't seem to work and have got lots of errors so far from the guides. I am using Ruby on rails version 7.

Related

The system cannot find the path specified for rails

Hey guys so I am new to everything including computers I don't know squat, nothing! I am recently trying to take ruby on rails on lynda.com. I have ran into many problems with using ruby and downloading rails I have followed allot of helpful tips which have helped but I cannot seem to get out of this loop for 6 hrs already.
I am using ruby 2.2.4 ,rails 2.4.5.1 on the other hand I don't know how to use it and when I check
rails -v
this pops up
the system cannot find the path specified
I am using windows 10 by the way. So can someone please help in detail and hoping you have the patience to work with someone who knows nothing. Thanks in advance.
I assume that you need to install ruby and rails on your windows 10 machine.
You can use rails installer for installing ruby and all other stuff related to ruby and rails using a single installation.

Start study Rails 4 or 3.2? What better for now?

Yesterday I started to study Rails, but, Ubuntu installed the version 4.0.0 stable.
I bought 3 books before that, and all these books are for 3.2 version.
My question is:
Can I continue study version 4?
Servers / Cloud / VPS are ready for it?
The differences between 3.2 and 4.0 is huge?
You might as well keep going on Rails 4. It will only be improved and 3.2 will stop being the version new Rails applications are being built with. Rails 4 will probably be the version the applications are built in for a few more years. Knowing Rails 4, you're pretty much able to understand older applications built in Rails 3, although dependencies are a problem if you start moving Rails 3 applications to Rails 4. There's a very good Rails 4 tutorial at http://ruby.railstutorial.org/ruby-on-rails-tutorial-book and you can use this site and your older Rails 3 books for quick reference.
If you're just learning Rails, I wouldn't recommend creating Rails 4 apps with Rails 3.2 resources. If you're following along to your version 3.2 books, you should install Rails 3.2. You can manage multiple versions of Rails using RVM.
My recommendation is start learning Rails 4. There are lots of Rails 4 resources available. As La-comadreja mentioned, Rails Tutorial is a good reference. Here are some others:
http://pragprog.com/book/rails4/agile-web-development-with-rails-4
http://rubyonrails.org/documentation
http://www.codeschool.com/paths/ruby
La-comadreja posted that railstutorial.org is based on rails 4. However, I'm going through the tutorial and it actually uses rails 3.2.16. I'd post an image, or even comment but my reputation is not high enough.

What should a Rails 3.x noob know about maintaining a Rails 2.3 app?

I recently learned Rails (Rails 3 to be specific) and got a small project maintaining a Rails 2.3.2 app.
So, as you might expect, I keep running into differences between what I learned in Rails 3 and what I'm working in.
For example 'rails server' command in Rails 3 is 'script/server' in Rails 2.x.
What else should I know to maintain my sanity?
If you're new to rails, I don't know if you'll see a lot of differences. The rails server command is one thing however.
The other big thing is the use of .gemspec in Rails 2.3.5 instead of Bundler and Gemfiles in Rails 3. Installing gems/specifying which gems your app uses is way better in Rails 3 I think.
The rest are mostly syntax changes and depreciated functions in specific areas (e.g. javascript generators).
This Blog does a good job of listing most of the major changes in more detail.
Hope that helps!

Are there any stable solutions for using Rails 3.0 and Facebook together?

I've seen reports that Facebooker doesn't work with Rails 3. I've noticed that there's a Facebooker2 project, but it doesn't seem to have any documentation and there's no information I can find about its Rails 3 compatibility. Are there any good choices for getting Facebook Connect working with a website built on Rails 3.0.0 (beta4)?
You can see there are some fork about rails 3 in Facebooker. But nothing official.
Rails 3.0.0.beta and Facebooker: anyone else seeing the following?

Can Ruby 1.9 used with Rails by a Ruby/Rails beginner?

About half a year ago, when I started to learn Ruby and Rails, I first tried Ruby 1.9 but I soon gave up, because at that time nothing worked out of the box and almost every helping blog or tutorial was designed for Ruby 1.8.
What about now? (Dec 2009) Is it possible to get an existing Rails application running by a Ruby and Rails beginner without running into problems which can only be fixed by an absolute Ruby and Rails professional?
Unfortunately I dind't have good experiences with Ruby 1.9 and Rails.
You can read more here: Has anyone successfully deployed a Rails project with Ruby 1.9.1?
My opinion is that migrating an existing Rails app from Ruby 1.8.x to Ruby 1.9.1 is not as easy as you would think, event with an excellent test suite.
I'm also quite sure that most of the problems arise from trying to convert an existing application because you are working with an established code base.
Starting with a new Rails app with Ruby 1.9 should probably easier because you can trace a problem as soon as you write a single line of code so you can easily isolate which component is not compatible.
When migrating an existing app I had hard time trying to figure out which stack level was actually not compatible with Ruby 1.9. And there are more than one incompatible libraries at the same time I can't tell you how it's difficult to understand which one should be fixed first and which one originated the final error.
In 99.9% of the cases yes, there were rare cases where u might find problems but they should be solved with the new release.
As for the external gems and plugins, most of them now are fully compatible with ruby 1.9, however sepcial cases might exist but I'm not aware of any right now.

Resources