Author: heridev

I decided to add a new image for a product in spree and in that scenario there is a generator provided by paperclip with the purpose of generate that new attachment I tried to run the following command: [shell] rails generate paperclip spree_products specs [/shell] Buuuuuuuut I received the following error: `migration_file_name': protected method `migration_file_name' called for # (NoMethodError)

If you are hosting your application on heroku.com and you want to run a task from time to time you can use the add-on scheduler which is free!! but how you can use it?, is it pretty straightforward just do the following: from console inside your project folder application you have to run: [ruby] heroku addons:add scheduler [/ruby]

If you want to apply some javascript functions in a spree view you can do something like: [ruby] Deface::Override.new(:virtual_path => 'spree/addresses/edit', :name => 'my_name_javascript_functionality', :insert_bottom => ".inner", :partial => '/spree/shared/my_partial_with_javascript_functions') [/ruby] content for [shell] /spree/shared/my_partial_with_javascript_functions.html.erb [/shell]

Well, it is pretty straightforward you just need to add the favicon in the following locations: [shell] app/assets/images/favicon.ico and public/favicon.ico [/shell] And don't forget to add the tag in your header or your layout: [ruby] <%= favicon_link_tag image_path('favicon.ico') %> [/ruby] by the way you can generate a favicon in the following website: http://www.favicon.cc/ That's it you...

hello guys I want to write about selectors, overriding, and defaces in spree with the DSL for Spree: In this time I want to share the code that I have created for a simple task. The scenario is the following: I want to edit option type values in the admin section, if you take a look into the code of spree you'll see that some of the views responsible for the option type edition are located in: [shell] backend/view/spree/admin/option_types/_option_value_fields.html.erb [/shell] and [shell] backend/view/spree/admin/option_types/edit.html.erb [/shell]

Consuming Tumblr blog from your website using Ruby on Rails (Spree), Backbone and Tumblr Api You need to have an account on tumblr of course and generate the application to be able to consume the tumblr api: http://www.tumblr.com/oauth/apps About the default callback you can choose any url for example: http:://localhost:3000 Then generate the application oauth in the following url: https://api.tumblr.com/console/calls/user/info Add the following gem to your Gemfile: [ruby] gem 'tumblr_client' [/ruby]