[Rails] Re: Need help with creating a Sidekiq Job

2016-04-26 Thread David Williams
David Williams wrote in post #1183093: These lines of code are working orphans = SimpleHashtag::Hashtag.all.select {|h| h.hashtaggables.size == 0} orphans.map(&:destroy) But, in order for the perform method to fire off. You need an argument to go along with it. -- Posted via http://www.ruby-

[Rails] Need help with creating a Sidekiq Job

2016-04-26 Thread David Williams
Let me explain the purpose for this job. I'm trying to remove orphan hashtags that aren't being used anymore (destroyed posts) This job would run once every month to clean out the database. I'm currently receiving variable/method undefined for hashtaggable_ids. The code that I wrote is below. cla

Re: [Rails] Re: Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration

2016-04-26 Thread Colin Law
On 26 April 2016 at 13:13, Naveed Alam wrote: > Colin Law wrote in post #1183079: >> On 26 April 2016 at 05:10, Naveed Alam wrote: >>> Yes I have a Configuration Model/Controler below are the links to >>> controller, and model >> >> In that case your simplest solution may be to change the name of

Re: [Rails] Want to write api of twitter to post tweet without any gem/library means with curl command

2016-04-26 Thread Paramnoor Singh
But It giving error of 220 your credential not allow. If i change api and try to fetch tweets it works. On Tue, Apr 26, 2016 at 7:57 PM, Paramnoor Singh < paramnoor.inters...@gmail.com> wrote: > Thanks for your reply , > > Ii tried with net/http but yes it work when i fetch tweets but did not >

Re: [Rails] Want to write api of twitter to post tweet without any gem/library means with curl command

2016-04-26 Thread Paramnoor Singh
Thanks for your reply , Ii tried with net/http but yes it work when i fetch tweets but did not work when i post a tweet. Here below is my code for that. require "base64" require "json" require "net/http" require "net/https" require "uri" ### Setup access credentials consumer_key = "X"

[Rails] FreshForex — fresh view on money

2016-04-26 Thread FreshForex05 Patel
FreshForex — fresh view on money Are you looking for the broker you can easy and comfortable work with? Your chase is over! FreshForex is a reliable broker for your profitable trading. These are not just words — get the proof! For 11 years we've been helping each trader to trade in Forex market 10

[Rails] Save my table historic with all the authorizations ids checked

2016-04-26 Thread Elton Santos
I have a problem... I need save my table historic with all the authorizations ids checked, update the column authorization_origin_id and set the column refinancing_id with the refinancing id created. Example: I checked authorizations ids 2 and 3, so I create historic with two lines with authori

[Rails] Re: Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration

2016-04-26 Thread Naveed Alam
Colin Law wrote in post #1183079: > On 26 April 2016 at 05:10, Naveed Alam wrote: >> Yes I have a Configuration Model/Controler below are the links to >> controller, and model > > In that case your simplest solution may be to change the name of the > model. > > Colin If I change the model name,

[Rails] Example of Grape API with token-auth needed

2016-04-26 Thread Olexandr Averyanov
Has anyone worked with Grape? Can you give a recent example of the API in Grape c authentication ?! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to ruby

Re: [Rails] Re: Re: warning: toplevel constant Configuration referenced by ActiveRecord::Base::Configuration

2016-04-26 Thread Colin Law
On 26 April 2016 at 05:10, Naveed Alam wrote: > Colin Law wrote in post #1183067: >> On 25 April 2016 at 16:08, Naveed Alam wrote: => [] >>> in 2.3.10 its not changing the theme. >> That does not answer the question. >> >> If you search your code for Configuration does it find anything? >> >