Re: [Rails] [JOBS] Você sabe Ruby mesmo?

2015-08-03 Thread Alexandre Calvão
https://www.facebook.com/groups/rubyonrailsbrasil === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2015-07-31 20:49 GMT+02:00 Pedro Sivero pedro.wewa...@gmail.com: Você sabe Ruby

Re: [Rails] Calling function from worker with delayed job in rails

2015-04-07 Thread Alexandre Calvão
, that means *TestDelay.delay.**start_worker,* is there any issues? On Tuesday, 7 April 2015 03:29:21 UTC+4, Alexandre Calvão wrote: This is totally the wrong way of doing this. You are breaking the MVC pattern. Neither the worker or the model should access the controller functions. You

Re: [Rails] Calling function from worker with delayed job in rails

2015-04-06 Thread Alexandre Calvão
This is totally the wrong way of doing this. You are breaking the MVC pattern. Neither the worker or the model should access the controller functions. You should put all the logic related to the delay job, inside the worker or in separated classes. I like to have a worker classe inside the app

Re: [Rails] Looking for input from skilled devs on the potential of this project

2015-03-11 Thread Alexandre Calvão
I think that you will install an app on your cellphone that will provide all that information to a server. It makes more sense. === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi]

Re: [Rails] Rails Integrate with Webrtc

2014-12-08 Thread Alexandre Calvão
I wrote this about it. http://www.toptal.com/ruby-on-rails/a-year-with-webrtc-lessons-in-startup-engineering === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-12-08 7:54

Re: [Rails] Re: Get the class name of the class who called the parent instance method.

2014-10-11 Thread Alexandre Calvão
Foo.instance_eval do def class_name self.name end end class Bar Foo end class Tar Foo end puts Foo.class_name #= Foo puts Bar.class_name #= Bar puts Tar.class_name #= Tar On Thursday, October 9, 2014 8:27:10 PM UTC-7, Alexandre Calvão wrote: Is not instance method

[Rails] Get the class name of the class who called the parent instance method.

2014-10-09 Thread Alexandre Calvão
Is there a way for me to do that on ruby ? class Foo def self.class_name self.class.name end end class Bar Foo end class Tar Foo end Bar.class_name = 'Bar' Tar.class_name = 'Tar' I want to get the class name of the class who called the instance method from the parent class. I

[Rails] Re: Get the class name of the class who called the parent instance method.

2014-10-09 Thread Alexandre Calvão
Is not instance method, is class method... My bad === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-10-10 0:17 GMT-03:00 Alexandre Calvão apot...@gmail.com: Is there a way

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
From the carrierwave documentation %= form_for @user, :html = {:multipart = true} do |f| % p labelMy Avatar URL:/label%= image_tag(@user.avatar_url) if @user.avatar? %%= f.text_field :remote_avatar_url % /p% end % It means that the parameter avatar should have the '_url' sufix. You

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
It also requires the 'remote' prefix. === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-10-03 12:19 GMT-03:00 Alexandre Calvão apot...@gmail.com: From the carrierwave

Re: [Rails] Carrierwave save nil value on database

2014-10-03 Thread Alexandre Calvão
Adham, The code I posted was just to show you that Carrierwave requires that you add a suffix remote_ and a prefix '_url' to the parameter managed by carrierwave, in order for it to work with urls. In your case the following code is not doing that, you are passing the the parameter 'avatar'

Re: [Rails] Rspec Active Record Problem

2014-09-24 Thread Alexandre Calvão
Try using scope http://guides.rubyonrails.org/active_record_querying.html#scopes. === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2014-09-24 12:52 GMT-03:00 Jason Fleetwood-Boldt

Re: [Rails] how can get data from localhost:3000 in ruby on rails to heroku

2014-07-07 Thread Alexandre Calvão
I don't think you understand the concept of databases very well. Look on google how to use the seeds.rb file. Maybe that will help === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi]

Re: [Rails] Ruby On Rails so serve para CRUD's

2013-12-10 Thread Alexandre Calvão
https://www.facebook.com/groups/rubyonrailsbrasil === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] Em 9 de dezembro de 2013 08:50, Stélio Moiane steli...@gmail.com escreveu: Bom

Re: [Rails] Re: A NJ/NYC based RoR developer

2013-03-08 Thread Alexandre Calvão
Try linkedin. Facebook it is also a great option for hiring developer. http://www.facebook.com/groups/2211785751/ But, for what I can say, it would be very difficult to hire someone with this specifications. The professionals here prefer remote jobs. === *Alexandre Mondaini

Re: [Rails] how to debug ruby on rails application

2013-02-11 Thread Alexandre Calvão
http://railscasts.com/episodes/54-debugging-with-ruby-debug === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2013/2/11 Venkat Vejandla li...@ruby-forum.com Hi Friends, How to

Re: [Rails] Looking for RoR job (remotely/part-time/full-time)

2013-01-30 Thread Alexandre Calvão
mail me so we can talk apot...@gmail.com === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2013/1/28 Sep D. li...@ruby-forum.com Hi guys, I am looking for a job as a Ruby On

Re: [Rails] On selecting the country, state dropdown gets refreshed

2012-09-30 Thread Alexandre Calvão
http://railscasts.com/episodes/88-dynamic-select-menus-revised === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2012/9/30 Colin Law clan...@googlemail.com On 30 September 2012

Re: [Rails] How do you create a link to a resource that expires

2012-09-29 Thread Alexandre Calvão
I would use cancan. https://github.com/ryanb/cancan/wiki/Authorizing-Controller-Actions if valid(params[:token]) authorize! :show, @stuff end === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*.

Re: [Rails] adding different title for a single form in rails

2012-09-29 Thread Alexandre Calvão
simple_form does that https://github.com/plataformatec/simple_form === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2012/9/29 ruby rails li...@ruby-forum.com I have a Task

Re: [Rails] [JOBS] Seeking a ROR Ninja

2012-09-09 Thread Alexandre Calvão
lol === *Alexandre Mondaini Calvão* *Nossa recompensa se encontra no esforço e não no resultado. Um esforço total é uma vitória completa*. [Ghandi] 2012/9/7 Geoff goo...@tidey.net Hi, two of my key skills are killing being invisible. Do I get the job? :P -- You received

Re: [Rails] tinymce_hammer can't save link

2012-07-08 Thread Alexandre Calvão
This plugin looks outdated. Try to use this one https://github.com/spohlenz/tinymce-rails. And remember to use the html_safe method to show the content, otherwise rails will not display as html. 2012/7/6 Ichiro Saga li...@ruby-forum.com Hi, guys. I created a new a Rails 3 program to test