Facebook like status update in rails 2.1.0 - ruby

Facebook like status update of CRUD operation in rails 2.1.0 over different model like Comments, Posts and Reviews over product.
If there is any gem already Available for this purpose or you can suggest me best solution of it. Inshort Activity Update of whole Application

I think this question would be better suited in the Ruby/Ruby-on-Rails group(s):
https://stackoverflow.com/questions/tagged/ruby-on-rails-2
https://stackoverflow.com/questions/tagged/ruby

Related

Ruby and databases

I am new in programming in Ruby, not to mention databases, so i would like a few pointers to my question. I have a few websites, where i gather information from users by a form, which they fill out (my websites are in Wordpress). The form is made in Contact Form 7 (https://wordpress.org/plugins/contact-form-7/) and the info is stored in the database with this plugin (https://wordpress.org/plugins/contact-form-7-to-database-extension/).
My question is: Is it possible to make a ruby program, that would fetch info from my sites (databases) and show me the information? Is there a better way of doing this (Ruby on rails perhaps)?
It is possible to access your wp data from a ruby app. You will need to familiarise yourself with the wordpress api. This gem might also help. You can build a small sinatra based app to keep it simple or use rails.

Using devise for more than one models in rails app

hello I am new to rails and i have installed rails version 4. I would like to know that I am making project for teacher n students. Can I apply devise gem to both the models teachers and students. The main thing in my project is that both teachers and students sign up form need to be different. Then can anyone tell me the procedure of how to apply devise such that sign up forms can be created differently...
Devise can work for you, but you will have to run through some tutorials. Your request for a complete how-to is too broad for an Stack Overflow question. http://railsapps.github.io/tutorial-rails-devise-rspec-cucumber.html#authorization
You may also want to look at a gem to manage permissions, as Devise is more for authentication. My personal favorite is the_role, but others like cancan very much.

OAuth2 Provider gem for non-rails, non-mongo apps?

I need to add OAuth2 authentication to a Sinatra-based API. No ActiveRecord, no MongoDB... but DataMapper.
Does anybody know what gems I can use to achieve this? I added rack-oauth2-server, but it depends on Mongo. I'm trying to understand rack-oauth2, but there is practically no documentation and I can't see how this is supposed to integrate in a real application that provides oauth authentication. Any well-documented gems out there? (Not Rails gems).
omniauth-oauth2 looked like it would work, but again, there's basically no documentation on how to integrate it. Links to articles that outline integration with these gems would also be useful.
I've been searching all day and just keep going around in circles. I'm sure this is a solved problem.
Why you didn't look at http://rubydoc.info/gems/oauth2/0.7.1/frames?

How can I update my business' Facebook page via my Ruby on Rails app?

I'm creating a new rails app for my business, and I just finished a new feature where I can put an announcement on the website (for specials, sales, etc.). I want this announcement to automatically be set to my business' Facebook page. How can I easily do this? Is the only way to create a Facebook application, and then if so, can a Facebook application have permissions to edit a business' page (I know apps can edit user profiles, but I don't know about business pages)?
Thanks for any help!
you can always create a rss and use for example rss grafiti http://apps.facebook.com/rssgraffiti on facebook.
i think this is the simplest solution, instead of creating application.
This might not be what you want, but it'd be trivial to use something like Watir to navigate to the webpage itself and post your status; however, I'm not sure Facebook provides something in their API for direct update.
I found a service called "Twitterfeed" that posts updates from an RSS feed to twitter and Facebook (among other services). This is a perfect solution for what I needed!
There is a gem called 'facebooker', that might help you.
http://apps.facebook.com/facebooker_tutorial/
cheers,
sameera

Which is the best 0auth gem for a rails app?

I'm going to add Oauth autenthication to my rails web app. Since I don't want to reinvent the wheel, have you got some ruby gem to suggest to add this kind of feature?
TIA
Paolo
I would say that this advice is now superseded. I'd suggest you use OmniAuth instead, possibly with Devise if you need normal auth as well.
There are 2 OmniAuth specific RailsCasts that walk you through exactly what's needed: OmniAuth Part 1 and OmniAuth Part 2
Have a look at these:
Pelle's plugin at github tutorial is here
and the second one is oauth2 with some examples
Petr

Resources