I am currently working on the eCommerce project motociclisti.pl based on Spree – „the world’s most flexible eCommerce platform”, as they advertise 😉
I have developed spree_essential_menus gem, which smoothly integrates with spree > 1.0.0 and spree_essential_cms > 0.3.0.
Add the following line to your gemfile:
Then run bundle.
Copy the migrations to your app (yeah, I know, I should add it to extension generator for the future):
bundle exec rake railties:install:migrations
and in the end run rake db:migrate. You are ready to play!
The SpreeEssentialMenus extension adds a subtab Menus to spree_essential tab (usually Static content, depending on you translation). You should first create Menu bars that you need for your shop (usually main menu and footer menu, but can be infinitely many).
Then in every menu bar, you can create as many menu elements as you want to.
You have two options:
manually type the path (it can be both relative or absolute, but in case of aboulute path remember to start with „http://”)
select a static page created in spree_essential_cms, that the menu element should point to. In this case, the path will be filled in automatically.
How to rearrange menu elements?
The menu elements can be easily reorganized by drag&drop functionality – just click on green arrows left to the element’s name in the index page of selected menu bar’s elements and drag it where you want to.
How to embedd it in my layout?
When you create Menu bars, you can easily embedd them in your layout by the partial, like below (written in HAML):
I am doing research for my master work using SPM Microscope. There is currently quite a few people doing projects that need this device, so we have to share it. Inpired by the fact, that recently I’ve been told to organize a booking list for this microsope, I decided to make a web application instead of a paper list. And as I am turning from PHP into Ruby on Rails, I found it a perfect opportunity to see the famous rails power in action.
To get familiar with Rails, I have gone through the book Foundation Rails 2 by Eldon Almeda, which I can strongly recommend for people who had something in common with webpages building. I have used three plugins:
What is my impression on Rails after having this project done? Rails are great! And by this I mean REALLY GREAT. Comparing with PHP, one can develop application much faster and in a more efficiet way. Thing that have consumed my most of the time was… getting plugins work with my application. The true is they are not very good documented for ‚beggingers’. But luckily – ruby code is really intuitive and easy to read, so you can figure out what each function does – it is just a matter of reading through the code. The application is quite simple, no AJAX, no RSS, only simple jQuery for some basic effects. It is perfectly doing what it was expected to
The conclusion from this appliscation: I would definitely use Ruby on Rails for further projects!