spree commerce in Rails - ruby-on-rails

I am newbie to Ruby on Rails and I would like to install "Spreecommerce". Could I have some help on doing this? I don't know where to start. Any help will be highly appreciable, thanks!

You are talking about Spreecommerce. Next time, try to add a link to the project/gem/plugin you are talking about.
Install the gem, on the command line like this:
gem install spree
Or, go to the Gemfile of your project and add the following line:
gem 'spree'
Then type this in the command line:
bundle install
Then, go to the official github page and read the documentation of this gem to get more information about it and how to use it. There is also this official getting started page that you need to read.

Related

Rails Generate model error in Ruby on Rails

I am building a new RoR app and i had tried to create a new model like below.
rails generate model Pic title:string description:text
But I keep on getting these errors always and I tried installing many methods like installing gems ,updated the gems etc.
P.S : I am trying install the older version of the gems. Is that creating a problem?
But none of it gave me the results. Please help me with this.
P.P.S : I am an absolute beginner to ruby. So please help me by giving solution with good reason. Thanks in Advance.
Hi seems like you have issues with your simple_form gem,try to remove from gem file and add gem 'simple_form' and run bundle install after this step run rails generate simple_form:install for creating config file for simple form.
Try this it may help you out.
As #Navneet pointed out generating a config file can also be used for configuration and it also works pretty well.
Another thing i found was , Here the gems used were older version. That created a compatibility issue(since it was not configured accordingly). So by replacing the gems with current version or stable ones , you can get rid of this problem.
Go to rubygems.org
Search for the gems and check whether its the latest version
If not, Replace the line of corresponding gem in Gemfile with newest one.

Rails gem git source not checked out

I was using the best_in_place gem on a project but decided it was not needed and removed it from the gemfile and the other references to it on my code.
Now everytime I run a rails command I got this error
The git source https://github.com/aaronchi/best_in_place.git is not yet checked out. Please run bundle install before trying to start your application
I dont even have this gem installed anymore, I created another gemset on rvm, reinstalled rails, reinstalled ruby, followed the steps on https://github.com/bundler/bundler/blob/master/ISSUES.md
No success yet...
The following page may have what you're looking for. If so, we might need to mark this as a duplicate:
is not checked out... bundle install does NOT fix help!
Let me know if that's not the case.

Not able to view site in browser with railsinstaller due to missing Gem

I am super, super new at programming and I have been trying to get everything set-up on my computer. I have installed RailsInstaller, go to >railsinstaller_demo, and type in rails s. I get the following error though could not find gem 'uglifier <>= 1.0.3> x86-mingw32'
I looked through the forum and found how to do a gem list and i noticed it was not there. I then went to gembundler and ran $ gem install bundler. I tried again but it did not work.
I am sure the answer is on this site, but i am so new that i see all these lines of code I actually have no idea where to type it in.. I am running Windows 7.
thanks for taking the time to help out a real beginner.
Have you gone to the $ railsinstaller_demo directory and run the bundle install command? This will install the gem dependencies for the application; you will not be able to run the server until you've bundled the gems. Additionally, if you're still having issues with the uglifier gem, go ahead and remove the line in the Gemfile and then run bundle install
If you need further help with the Command Prompt, you an find out more at http://bit.ly/ZajVeW.
Thanks,
Evan

Using Ruby to send SMSs

I'm trying to code for an sms server using the following tutorial.
http://lukeredpath.co.uk/blog/sending-sms-messages-from-your-rails-application.html
Here they advice us to use clickatell but i have a gateway that i can use which i would like to use. However i wouldn't know how to write the bits of code that says require clickatell or sudo gem install clickatell. I'm new to ruby and rails hence any help would be appreciated :)
In Gemfile:
gem 'clickatell`
Then run bundle install.

Bundle Install very beginner problem

Okay I'm basically day 1 at programming trying to follow Ruby On Rails 3 by Hartl... its not going well and I seem to be getting stuck every step of the way.
Right now I'm on page 19 & 20, not sure if I did it correct since it didn't really explain to well what it means but I get an error message. I did look thought other questions on here and didn't find any that were as beginner as mine that I might even understand.
For those without Hartl's book I found this page has it all: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:the_first_application
So where it says to update the Gemfile I amended the document in TextMate to read gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'. The book then says:
Once you've assembled the proper Gemfile, install the gems using bundle install:
$ bundle install
Fetching source index for http://rubygems.org/
What I did was amend the file and just hit save, I'm not sure if that's what it means by assembling it or if there is something more I need to press. Looking through the menus in Textmate, nothing jumped out at me. When I then typed in bundle install I get the message unknown command bundle
Any advice in basic terms would be very helpful as I'm obviously a complete beginner at this. Thanks!
Ryan
In order to use the bundler gem, you'll need to first install it.
gem install bundler
Then you can use:
bundle install

Resources