Is there anything that explains the Rails' API documentation? [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I know that http://api.rubyonrails.org/ is meant to explain methods etc in ruby on rails, but I need something that explains the explanation to me. It seems like a good resource, I'd like to understand it or perhaps it's time to give up.

I think this might be what I was after
Reading the API

I suggest you try some light reading first. Quite a few Rails tutorials exist.

As the URL indicates, this is API documentation. You use it for reference, not for learning about the language or framework. This is not specific to the Rails API, but for just about every framework out there.
I suggest you follow a few Ruby tutorials and then start on a few Rails tutorials first.
http://www.ruby-lang.org/en/ should get you started on Ruby. I won't bother linking to Rails tutorials, but http://railscasts.com/ is an excellent place to start once you get a basic Rails app up and running.
After that, the Rails API will start making a lot more sense.

http://api.rubyonrails.org is definitely not what I would call newbie friendly. Here's some places to go for more information:
railsapi.com -- Same idea but way better presentation, easier to navigate. Use this like you would msdn.com: a reference for things you already know about, but need to look up the particulars.
guides.rubyonrails.org -- This is geared much more towards new users in a tutorial format.
railscasts.com -- Short demonstrations of particular features and plugins in screencast format.
Of course if you have any specific questions about the framework you've already come to the right place.

I recommend at http://www.railsbrain.com and http://railsapi.com/doc/rails-v2.3.5/ as better ways of navigating the docs.

Another good source would be apidock.com
Contains lots of examples on how to use each rails feature.
In addition the same site also provides documentation for Ruby

This one has a lot of good examples: http://www.tutorialspoint.com/ruby-on-rails-2.1/rails-quick-guide.htm

Related

How to become a ruby on rails intermediate/master developer [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I started learning ruby on rails about 3 month ago. I' ve follow several tutorial on twitter clone and i'm on my way to finish the Ruby on rails tutorial by micheal hartl and was wondering how do i make sure to push for the next level. My goal is to be able to make great app that can deal the actual web standard . There is a lot of content to learn rails for beginner but i would like to get blog, tutorial ,books or any other link for those how want to push there knowledge on the framework forward . Thank you .
I think that every body answer is important to that question so i' not gonna validate any answer .by respect for everybody . but thanks a lot and keep adding answer and feedback .
The short answer would be: "Practice, Practice, Practice".
Start reading code of gems you've using. You will pleasantly surprised that you can find answers for many your questions by diving into the code.
Along with the practice you should always be informed about news, tips, tricks and new features. So I would recommend you subscribe to RubyWeekly unless you already subscribed. Read articles about Ruby on Rails and play with the code samples you've read from these articles.
I've also recommend you to become involved with TDD/BDD it really changes the thinking about how writing code.
Follow the screen casts. You probably know about RailsCasts. I've also recommend you to subscribe on Destroy All Software it's cost $9 per month but it worth it.
Good luck.
Here is a lot of free books about programming (includes ruby, sql, design patterns and others): http://programming-motherfucker.com/become.html
My recommendation.
In order to read:
http://www.amazon.com/Eloquent-Ruby-Addison-Wesley-Professional/dp/0321584104
http://www.amazon.com/Rails-Way-Addison-Wesley-Professional-Ruby/dp/0321601661
http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison-Wesley-Professional/dp/0321604814
http://www.amazon.com/Metaprogramming-Ruby-Program-Like-Pros/dp/1934356476

Ruby on Rails API Tutorial [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've never worked with or written an API before. To help me learn, I want to write a Facebook API library RubyGem.
I'm thinking I should start with learning how to write a simple API with RoR.
Do you know of any good resources or tutorials that will help me learn how to write an API with Ruby?
I think you'll first have to chose what is exactly that you want to learn, since there's quite a few parts to this.
A gem such as facebooker is used to consume the API of a web service rather than "create" or expose an API (for a web service). In order to understand a library like this and what it does, you could try to learn more about APIs in general, but also about ways to access them using Ruby.
Even though Rails and the Rails community are embracing RESTful (or actually RESTlike) APIs, there are a bunch of other forms around as well, such as SOAP. Facebook e.g. has ditched REST in favor of their graph API. Check the answers for this question, which deals with the different types, to learn more: Examples of the best SOAP/REST/RPC web APIs? And why do you like them? And what's wrong with them?
For ways to access (REST) APIs I'd suggest taking a closer look at the source code of gems such as e.g. HTTParty and rest-client as well as Ruby's standard library Net::HTTP.
What comes to API's and web services, I've heard good things about "Restful web services" but there's a whole bunch of books and about a gazillion blog posts out there on this topic. Google is your friend.
And then you'll probably want to have a look at the development of ruby gems in general. This answer might give you some pointers in this regard: Ruby : How to write a gem?
This is an endless topic and I suggest to just get started somewhere. Learn how APIs work, how to access them and then read lots and lots of source code, e.g. of Facebooker or one of the other Facebook API gems. See how they work and start writing code. Good luck!
http://8raystech.com/2009/10/06/a-real-life-restful-rails-application
[edit]
The above link is broken.

Can anyone recommend a beginning Ruby on Rails tutorial that doesn't rely on scaffolding? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've just started learning Ruby on Rails, and all the tutorials and books I've used rely on scaffolding to get started. I've written two simple apps but I still can't figure out how to independently write a database-driven app without using scaffolding, and yet from what I've read online most professional Rails developers don't use it. Are there any tutorials that would help a newbie create their first app without scaffolding?
This one http://net.tutsplus.com/tutorials/ruby/the-intro-to-rails-screencast-i-wish-i-had/ is pretty good and helpful.
"Rails 3 in Action" is a good resource (I've even bought it ;)), one thing I hate about it is a sort of enforced usage of Cucumber.
Cucumber is a great tool, worth mentioning, but it is used all over the book and it clutters the narrative terribly. I would like to have Cucumber-free version of the book and I belive that most beginners would prefer the same.
Ruby on Rails Tutorial by Michael Hartl: http://www.railstutorial.org/
Best resource for Rails learning I've come across, whether in paper or online.
I'm currently writing a book called Rails 3 in Action that sounds like it would "answer" your question.
Whilst the first chapter does cover scaffolding (just for a "quick win"), the rest of the book goes through and teaches you how to develop an application using the exact same process that people in the real world do.
You'll learn Rails, Cucumber and RSpec, along with the other gems that we pick up along the way of developing the application.
Give it a shot and let me know what you think.
Check out some of the older Railscasts.

Using FourSquare API in a Rails App [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Anybody have any good resources that might be helpful in trying to integrate the FourSquare API into a Rails app? I'm specifically looking for a good tutorial. There doesn't seem to be much out there yet. There are a few ruby gems, but they are pretty bare bones and I need a bit more hand-holding.
Here is a resource that I've found so far:
http://tedgrubb.com/
Stack Overflow won't let me include a second hyperlink, but you can also google: Foursquare ruby gem for another resource.
I have not done much work with APIs in the past, but I am very comfortable with Rails. What I need is a little better sense of exactly where all the pieces fit. A basic tutorial is what I'm looking for.
Thanks.
This helped me. It's a working example of a Rails project integrated with FourSquare:
https://github.com/pierrevalade/foursquare-rails-examples
Quimby is an excellent ruby api wrapper:
https://github.com/groupme/quimby
It was built by GroupMe.
'foursquare2' Ruby wrapper for the foursquare v2 API
Refere this : https://github.com/mattmueller/foursquare2 which is good & helped me a lot.
You can able to get more foursquare API data as user less and with authenticated user also
by using the 'foursquare2' gem.
The foursquare-API gem seems like the only one out there that supports V2 of their API and seems like the best place to start.
This isn't an answer, but this may be a start:
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
http://developer.foursquare.com/docs/oauth.html
I'm having trouble implementing a 4sq rails app myself.

Solid tutorial for building a simple wiki application in Ruby on Rails? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've searched and I've found a lot that are antiquated.
Any suggestions?
You can easily create a wiki with zena (a rails CMS):
You create an empty application with
zena wiki
You initialize an empty database
cd wiki; rake zena:init RAILS_ENV=production
You set the publish, write and read groups of a node to "public" (use the wrench tool, "drive" tab)
You change the anonymous user's status from "moderated" to "user" (user management by clicking on the "Admin User" link)
And you have a wiki with multilingual support (if you need it) and the usual versioning, diff tools and image management.
I think building an application like that from scratch would be much easier trust me! The reason why I dont suggest building from CMS or any other gem is because you need to learn how it works which might be easier but integrating it into your application is tough and it gets tougher especially when the versions are different. I built wiki for one of the social networking website that I was building. It is simple. I built it just like I built a blog. Each blog has a post and an Author just like wiki has a user and a question asked by the user.
Blog has comments and wiki has answer to the question. Every other minor details follow along. I am still in the process of building a robust wiki with these basics. So I will be happy to help with any more questions that follow along.
The video that helped me with this process is:
http://media.rubyonrails.org/video/rails_blog_2.mov
Feel free to ask any more doubts that follow. I will be happy to share the code that I built.
maybe you want to take a look at the instiki sourcecode: http://github.com/parasew/instiki - there is lots of code you can reuse. have fun!
You looked at these? http://www.digitalmediaminute.com/article/1816/top-ruby-on-rails-tutorials
None of them are "solid"?
Maybe looking at working examples might help you as well. I do not know wiki tutorial for rails, but know about these wiki solutions, written on the top of rails and without rails, but written in ruby:
irwi is a complete wiki plugin for Ruby on Rails
instiki - another wiki running on rails
riki wiki - this is fun: it was written in ruby for the shortest wiki contest, it is not documented, but the code might explain itself

Resources