> 1) Are you using Rails?

Only in my spare time, but I want to use it more.

> 3) Would you prefer an approach that generated JS by writing Ruby  
> helpers that generated jQuery code, or an approach that made is  
> easier to link up existing jQuery code into Rails?

I suppose the linkup ... not that used to rails or so yet, and since  
I'm mainly a client-side person, I don't really like the server-side  
to generate javascript ala rjs or similar.
I think I'd like some easy way to generate JSON and get that into  
Ajax stuff, and an easy way to know if a request was made by ajax and  
then filter/present partials/views accordingly. I'm really a beginner  
to rails so this may already exist in some form but stuff like

if request.ajax?
   render :partial => 'my_ajax_partial'
else
   render :partial =>'normal_view'
end

or perhaps even some filter, in the view, than renders a partial with  
partialname_ajax or just partialname depending on the request.  
(following the rails magical convention over configuration)

or just give out json from a model in a controller

def json_request
   render: json => My_object.new(params).to_json
end

or something. again, this might exist, I don't know rails good at al  
and I'm just making some stuff up :)


> 4) If you've used jQuery with Rails, what issues have you run into

haven't tried yet, but as things look now, I suppose I'll just use it  
as if it was with PHP or semething, that is, not really having any  
kind of server-side specific support like remote_form_tag or anything  
like that.


andreas



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to