What are some Great resources to get into Rails?
Keep in mind this is for someone that has little to no programming
experience.
So starting from scratch…
A little background is that I want to create a program for personal use
that uses Databases to store lots of information. They wopuld draw from
each other and work to help in large scale event planning and
management.
What are some Great resources to get into Rails?
Keep in mind this is for someone that has little to no programming
experience.
So starting from scratch…
Work right through a good tutorial such as railstutorial.org which is
free to use online. Make sure that you install exactly the correct
version of rails for the tutorial (which should be Rails 3.n)
Most developers use Linux (Ubuntu for example) or Mac. I recommend
installing with rvm, I gather that rbenv is an alternative.
Also consider that to develop web applications you will eventually
need a good knowledge of html, css and javascript.
Q1. It looks that most convenient way of developing Rails Views is using
form helpers when developing forms and partials.
On the other hand one can develop much richer HTML5 pages/mockups using
WYSIWYG tools like CKEditor, Dojo/IBM Maqetta, etc.
How one can continue with Rails having already developed Web site
mockups?
Q2. Up to my findings, Ajax can be automatically fired using
:remote=>true but just in link_to and form_for helpers.
There are many other JavaScript client events when one needs Ajax to be
called. How to proceed with Ajax in that case, for example onClick
mouse/keyboard event?
Ruby guides is really great resource for RoR learning. But I can advise
you www.codeschool.com also. They have fun course called “Rails for
Zombies”.
It’s little messy for the begginers, but it really helps me when I was
just
started RoR learning.
A1. If you have a mockup already you replicate most of the look and feel
by
pasting that in your erb file and replacing forms etc with their form
helper counterparts. The only issue to keep in mind, most of those
produce
less than optimal code, which means you may want to clean that up a bit.
A2. Rails comes with jQuery included by default (in later versions
anyways). You can simply bind events to the DOM with jQuery. Something
along the lines of:
$('#someId).on(‘click’,function(){
yourfunction();
});
It’s really quite easy once you learn how. http://api.jquery.com/category/events/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.