Solutions for cron jobs in rails3 - ruby-on-rails

I'm trying to log some data daily, automatically in my rails app. I was wonder if anyone knows a good solution for this? I found https://github.com/javan/whenever, but I wanted to make sure I knew of all the options before I chose.
Thanks!
Elliot

I really like whenever - it's a great Gem and I have used it in production.
There is also a good Railscasts episode about it:
http://railscasts.com/episodes/164-cron-in-ruby

Related

authentication page in rails?

I have tried few examples in rails and it went wrong in some way. Finally i looked at https://github.com/plataformatec/devise_example.git , which works correctly but i find it difficult to understand how it works or the process of getting it done. So if someone can help me by explaining the steps involved in the same example if possible or the other, i can understand it. Thanks.
You might want to watch the RailsCasts episode on Devise: http://railscasts.com/episodes/209-introducing-devise

Rails support gem/engine

I need to add a customer support function to an existing Rails 3 app. I want to enable the users to submit a support ticket and answer back and fourth until the issue is resolved. I am currently using Zendesk.
Does anyone have any knowledge of something I can use? Or should I just develop it myself?
Regards,
Jacob
So you essentially want to be able to create a system to manage issues? Checkout Redmine. It has the ability to manage issues. However, I'm pretty sure that the way it looks isn't the way you want yours to look.
You can lift the generic code from Redmine and apply it to your app. I doubt you'll find a gem that does all the magic for you the way you want it to look and act, so you'll need to do programming.
I haven't tried this. I saw it listed on Open Source Help Desk List where both Redmine and Big Help are mentioned. I am also looking for a help desk gem and stumbled upon your question here.
Big Help: A help desk portal built with Ruby on Rails

Rails gem/plugin that gives suggestions how to optimize your DB queries

Some time ago I saw in a screencast showing a gem or plugin, which was able to suggest how to optimize your Rails DB queries, like where to use include or add an index and so on... Now I can't remember which screencast that was, but maybe somebody knows what I am talking about, I mean that gem/plugin.
Actually I have found it was on this screencast, and it is called bullet
You're probably thinking about https://github.com/eladmeidar/rails_indexes , possibly https://github.com/samdanavia/ambitious_query_indexer .
Good luck.
Was it rails_best_practices?
Now You can use my newly created gem 'query_optimizer'
You can optimize queries as Post.optimize_query(:comments)

Solution for comments for a Rails application

I'm introducing comments into a Rails application, and, being exceptionally lazy, I'm looking for a plugin to do it for me. I came across acts-as-commentable, but I didn't find much else. Acts-as-commentable seems fine, but it doesn't have support for threading.
Of course, it wouldn't be too hard just to home-brew the entire thing, but I think that surely commenting is such a common feature that there should be a canonical plugin to handle it. Can somebody with perhaps more Google Fu than me point me in the right direction?
This is acts_as_commentable_with_threading plugin which help you for threaded comment.
Link::
http://github.com/elight/acts_as_commentable_with_threading
The most lazy approach would be to use third-party commenting system like DISQUS : just copypaste a couple of javascripts and you're done.
Surely, it can't be used if your app has an authentication system of its own.
If you do not want to integrate a third-party service like Disqus, you have Juvia The Comments and Commontator. Also you can count with opinio as alternative. but only with Rails 3 and at the moment and as notice the development seems stalled.

Are there other search options for heroku

I am about to launch a beta site, and heroku looks like a great option. The only think that is getting me down is that the only search option is $20/mth for the Websolr add-on.
I am sure that Websolr is great, but at this very early point in this project, I rather not light up that expense.
Are there any free search options to couple with heroku's Blossom (free) plan.
I feel like such a cheapskate!
This post seems to have good options:
Leveraging the full text search of postgrSQL:
http://tenderlovemaking.com/2009/10/17/full-text-search-on-heroku.html
Also explains the options of Ferret and Solr.
IndexTank has a heroku addon you can use for free.
It has some advantages over websolr, like realtimeness, fast (all in ram), and a very flexible scoring system that doesn't require to reindex (allows for very easy a/b testing).
My gem pg_search does full-text search against PostgreSQL, and works directly on Heroku.
Check it out and let me know if it works for you!
acts_as_tsearch works great. No configuration needed if you have postgresql > 8.3. Have to experiment with multiple tables though. Will use it on heroku till i can afford the WebSolr Add-on. I found it a better option compared to the texticle method as explained in the article link above (tendermaking).
acts_as_tsearch: http://github.com/pka/acts_as_tsearch
No, I was looking for that too a week ago, and didn't find anything...
And I don't think there is any work in progress on another add-ons like this as they already have one, so they won't put another that is free... :/
Anyway, heroku is amazing, so try to make it work with code or just spend $20 :)
acts_as_ferret won't work as Heroku cleans up the /tmp directory regularly. Even i am in need of a full-text solution. Thinking of trying out the acts_as_tsearch plugin.
Looks like IndexTank was purchased by LinkedIn and will be discontinuing support (although some portions might be open-sourced in the future). See this post for more info: https://indextank.com/documentation/faq2
If you're using Postgres for your Rails app then take a look at this free way to do full text search:
Part 1 and
Part 2
This uses the pg_search gem to allow you to use PostgreSQL's pg_search_scopes feature and have full text search without any other dependencies.

Resources