On Sun, May 15, 2011 at 12:20 PM, egervari <ken.egerv...@gmail.com> wrote:

> I am loving just about everything in rails right now. I find a lot of
> things faster than java and it's a pleasure to work with.
>
> One area though that I am not sure how to proceed with is ajax/
> javascript.
>
> For those of you using rails and a lot of ajax, what are your thoughts
> on the built-in functionality for javascript? What about jquery-rails?
> Do you go with it? Do you fight against it? Do you start from scratch?
>

Given that I knew very little about ajax and jquery when I started working
with rails I have never touched the built in rjs and probably never will. Up
to now it has just never seemed necessary and another place that something
could go wrong. Definitely use jQuery if you have not already. That is a
level of abstraction that is a lifesaver.


>
> With 3.1 having so many changes when it comes to Javascript, does it
> make sense to setup your 3.0.7 project in a certain way to make it
> easier to upgrade later?
>
> There are also a lot of possibilities with other libraries on top of
> jquery. For example, some people recommend using something like
> backbone.
>
> I have found on my last java program that require.js was really handy,
> but I'm not sure if that was the 'best' way to structure large
> applications. It was definitely better than doing it ad-hoc and just
> sprinkling 10 script tags on every page.
>
> I'd like this project to have some cohesion and structure when it
> comes to how I lay out my javascript this time around. The javascript
> features are going to be really intense, and I don't want to run into
> any pitfalls.
>
> What would you suggest? While I am really experienced in developing
> applications, I am not the most experienced when it comes to ajax-
> specific ones. I am also pretty new to rails... so if there's common
> conventions and common library setups that everyone "just uses", I
> won't be aware of it right now.
>
> Thanks for the help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to