Author: heridev

As you know there is a free plan in heroku.com and you can use only 10,000 rows in the database but sometimes your database exceeds those limits and you don't want to pay because the app installation in only for testing purposes. That is why you can use the following commands if you want to to search and find the tables that have the maximum number of records and be able to delete the ones that are not necessary for you

Just for future reference in Spree you can use the following code in spite of authenticate an existent user created in a Spree Store [javascript] var server = 'http://localhost:3000'; var userAuthUrl = server + '/login.js'; var data = {spree_user: {email: "spree@example.com", password: "spree123"}} $.ajax({ type: "POST", data: data, url: userAuthUrl, success: function(data, textStatus, jqXHR) { console.log(data); console.log(textStatus); console.log(jqXHR); } }); [/javascript]

In this tutorial I'm going to show you one way to setup Golang and build your scripts into executable programs(binary files): First of all you have to go into golang.org, download and install Golang depending on your development platform, in my case I'm using Mac OSX and if you already have installed brew is just as easy as run from console: [shell] brew install go brew install mercurial brew install git //installing godoc for creating package documentation go get code.google.com/p/go.tools/cmd/godoc [/shell] After to install GO you have to declared and export "GOPATH" variable it is recommended to add it inside your user profile maybe if you are using bash you have to put the code into the file ~/.bashrc or in my case ~/.bash_profile or if you are using Zsh into the file ~/.zshrc so the code you have to put into your file looks something like: [shell] #go path export GOPATH=$HOME/Golang export PATH=$GOPATH/bin:$PATH //use the following if you want to generate documentation for your package using godoc export GOROOT=`go env GOROOT` export PATH=$PATH:$GOROOT/bin [/shell]

Hello guys I want to share with you about this problems with wrong color or quality for the uploaded images using Paperclip gem, Imagemagick and Heroku.com. The fix that we did it is related with the Imagemagick configuration and updates in order to fix this problem you have to do the following actions: First you have to set a new environment variables on heroku running the following command:

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]