what is the relationship between ruby, ruby on rails and html? - ruby-on-rails

what is the relationship between ruby, ruby on rails and html?

Ruby is a programming language. Ruby on Rails is a Model-View-Controller (MVC) web application framework written in Ruby. HTML is a markup language used for the formatting of web pages and is commonly used to present the output generated by a Ruby on Rails application to the final user.

Ruby is programming language
Ruby on rails is a web framework written in Ruby.
HTML is a markup language to create web pages

HTML is markup language used majority of times in view of rails.It is used to design the frontend.
Ruby is a object oriented programming language with latest version as 1.9.2 and Ruby on rails built on ruby is a web application framework with version3 currently in use.Links which may help you:
http://www.ruby-doc.org
http://api.rubyonrails.org

Related

Can you use a Rails Engine with a JS Framework like Vue

I want to do a project with https://github.com/projectblacklight/blacklight
Can I use it as a Rails API with a Vue frontend?
It is a Rails Engine that returns JSON but it is traditionally used in a Rails app as a Plugin / Gem (really it's an engine which is similar).
https://github.com/projectblacklight/blacklight/wiki
Every Blacklight search provides JSON, RSS, and Atom Responses of search results
I am researching this and so far I think the answer is yes.
Jason Coyne from Stanford built an App using Ember with Blacklight
Here are some more discussions around the question.
+ https://github.com/projectblacklight/blacklight/wiki/JSON-API
+ https://github.com/projectblacklight/blacklight/pull/588
+ https://groups.google.com/forum/#!topic/blacklight-development/TIYCjemfp3A
There is not a lot of documentation about this that I can find.
blacklight-vue is an engine made explicitly for this purpose. blacklight-vue-demo is a sample build with this engine. The generic answer for building any Ruby on Rails application with Vue is to use the Webpacker gem.

Bundle a rails 4 application into a gem?

I am currently developing a rails 4 based media streaming app and wanted to know if i could have the rails app as a kind of source code and bundle it into a gem for distribution? is there some sort of easy solution for this? or do i have to roll my own?
From your description, I think you can do this via an Engine. From the Rails docs:
Engines can be considered miniature applications that provide functionality to their host applications.
...
Engines are also closely related to plugins where the two share a common lib directory structure and are both generated using the rails plugin new generator. The difference being that an engine is considered a "full plugin" by Rails as indicated by the --full option that's passed to the generator command, but this guide will refer to them simply as "engines" throughout. An engine can be a plugin, and a plugin can be an engine.
Read more at http://guides.rubyonrails.org/engines.html

HTML site to Rails

I'm trying to learn Ruby and Rails. So, I've created a template site with Foundation framework for HTML and CSS. Now, at the begining, I want to add multilanguage platform to this site. I knew about i18n on Rails.
But my question is about:
How to move html site (f.e. mine) to ruby on rails platform? Is it enough to move template rails project to my site and then merge it? As I understand Cloud9 IDE support rails platform

Recommended TextMate Bundles for Ruby on Rails Development

Can you guys please recommend few textmate bundles that would be helpful while developing ruby on rails applications
Kevin Faustino put together a fairly recent list (May 2010) of his favorite Textmate bundles. This list got me started on improving my productivity with Textmate and searching the web for Textmate bundles that fit my personal needs.
The Ruby on Rails bundle, obvi. The jQuery bundle is also cool if you happen to be using Rails with jQuery.

how to internatianalize the ruby on rails site

We have the rails app, content served from the database. Now we need to translate that to multiple languages. What is the best way to the internalization of the ruby on rails application?
You can use the plugin Globalize2 http://github.com/joshmh/globalize2
Try using localized record to add translations for your content.

Resources