Any suggestions regarding implementation of authentication mechanism in a project using Rails 4 and Neo4j?
gem devise-neo4j https://github.com/benjackson/devise-neo4j/ is no longer mantained
Unable to find any good resource describing the implementation of authentication mechanism in Rails 4.0
In your Gemfile, use gem 'devise-neo4j', "~> 2.0.0.alpha.1". It was updated earlier this year to support Neo4jrb v3.
Related
I'm using Rails 3.2.11 and Ruby 1.9.3. I want to subscribe user to
mailchimp. But when i use gems like(gibbon and mailchimp_api).There are
too many dependencies issues. Mailchimp developer guide not help me too
much.I spent many days but not solve these issues.
How can i make direct api calls to mailchimp for subscribe users?
Any help?
Resolving your dependency issues with Gibbon should be a cinch: it only relies on two things:
gem 'faraday', '>= 0.9.1'
gem 'multi_json', '>= 1.11.0'
If you're unable to use a recent version of each of those, you probably have something else awry.
As for working with Mailchimp directly, their developer guides do a great job of walking you through how to obtain API tokens for other users using OAuth2 and explaining the endpoints that are available. You then just need to make HTTP requests (e.g. with Faraday v0.9.1 or greater), parse the responses (e.g. with multi_json 1.11.0 or greater) and write logic to handle errors.
If you want to get started faster, you could look at the source for Gibbon. You can even get away with copy-pasting the entirety of Gibbon into a gem of your own naming and modify the code to not rely on those dependencies.
...when i install gibbon then i need to move my ruby version from 1.9.3 to 2.1.3
You can use an earlier version of Gibbon that supports Ruby 1.9.3. It looks like the last version to support Ruby 1.9.3 is Gibbon 1.2.1.
I need the functionality provided by the rails_sql_views gem. However it looks like the last commit for this gem was made in 2010. Has this project been outdated by a new project? I'd like to find an active gem to use to get this functionality.
http://activewarehouse.rubyforge.org/rails_sql_views/
http://rubygems.org/gems/rails_sql_views
After further research here is a Rails 3 candidate for similar functionality:
https://github.com/bradphelan/Active-Illusion
This is a gem of this blog post:
http://xtargets.com/2011/08/02/tableless-views-with-active-record/
However this solution doesn't seem to be very popular.
schema_plus gem has create_view method that seems compatible (although I'm not familiar with rails_sql_views).
barancw, I needed this gem for our product using Rails 3.2.5, so I forked the repo and updated the necessary pieces. This gem is great for improving the performance of our large database queries, as it reduces the need to load objects into memory. I combined this gem with another optimization: Rails - given an array of Users - how to get a output of just emails?
https://github.com/ryanlitalien/rails_sql_views
Original documentation: http://rubydoc.info/gems/rails_sql_views/0.8.0/frames/index
Please keep in mind the docs are a bit outdated ("require_gem" has been replaced with "gem" and add the gem to your Gemfile as well).
I'm new to RoR development and I'm searching for suggestion for finding best community gems.
E.g. for authentication/authorization? Is devise a good component? https://github.com/plataformatec/devise
Is there any gem for produce a richer gui in views with easy?
In few words, an experienced RoR developer what gems he installs after creating a new app?
Regards,
Giacomo
To answer the question, Ruby Toolbox is a great resource for finding Ruby/Rails projects (both new and old) as well as comparing the relative popularity of gems providing similar solutions. While the active development culture behind Ruby is empowering for developers accustomed to reading and writing Ruby, I think many newer developers get overwhelmed with all the options.
With that in mind, for someone who is just beginning Ruby/Rails development, I'd suggest either rolling your own authorization/authentication system or following a tutorial that explains the process. You can find a great tutorial explaining the basic structure of a User model including authentication in Michael Hartl's Rails Tutorial
Likewise, understanding that Rails Views can be as simple as combining regular, old HTML, CSS, and Javascript with some Ruby variables is valuable without depending on the magic of something like Bootstrap.
This is always basic in nearly all my apps.
gem 'devise'
gem "friendly_id", "~> 4.0.1"
gem 'omniauth-facebook'
gem "devise_mailchimp"
gem 'twitter-bootstrap-rails'
gem 'dragonfly', '~>0.9.11'
gem 'will_paginate'
gem 'will_paginate-bootstrap'
gem "mysql2", "~> 0.3.11"
gem 'thin'
and more. You can also visit http://railscasts.com/ you will get more ideas there.
Yes devise is very good gem with a lots of options and flexible authentications .
see this https://github.com/plataformatec/devise/wiki/Example-Applications
For gui in views you can use bootstrap twitter gem. It is easy and you can quickly build your view.
The gem installed by developers is depend on their need. there are more tah 1300 gem available right now...
Keep coding.
What helped me a lot was viewing a bunch of Railcasts. You'll get a good overview of gems you might want to use.
You can check this rails style guides from bbatsov, it's a community-driven guide, there are many practices that people used every day.
Here is my gemfile
you can also look into ruby-toolbox
Hi I installed OAuth Plugin on my Rails 3 app to turn it into an OAuth Provider.
I followed the instruction from https://github.com/pelle/oauth-plugin under Rails 3.
But, under the instructions it says the following:
It requires an authentication framework such as acts_as_authenticated, restful_authentication or restful_open_id_authentication. It also requires Rails 2.0.
I am puzzled by the fact that it says Rails 2.0 is required. Do I have to install Rails 2.0 as well somehow? Thanks
No, it shouldn't.
Make sure you have something higher than 0.4.0 in your Gemfile, as the instruction say
gem "oauth-plugin", ">= 0.4.0.pre1"
Rails 3 will never allow you to load Rails 2, its going to implode.
Two books (Learning Rails and Foundation Rails) both use restful_authentication gem / plugin to do user registration / activation. Is it a gem comparable to AuthLogic and OmniAuth?
Is it still a good useable plugin for doing so and work well with Rails 3? I thought GEM is the preferred method, and restful_authentication moved to github and it can be installed only as a plugin?
restful_auth is a rails plugin. It pollutes your code because it generates code.
authlogic is newer than restful_auth. It's a gem instead of rails plugin so your code is much cleaner than using restful_auth
omniauth is a newer gem than authlogic but it uses external provider e.g OpenID, OAuth, etc, instead of your database.
The latest authlogic works well with Rails 3 with a few hitch.