>
>  Out of interest, what's your problem with the above code?
>>
>> its crutch, for incomprehensible thing
>>
>
> Sorry, I don't understand - could you rephrase...
>
> U should not insert if request.xhr?
>  u can create view, with build js ( show.js.erb)
> and in its view call render, but with js escape
>

Fair point.  I don't often do this... :-)

> The problem is we don't know how complex his logic is that converts the
> data structure to HTML.  I think you have a fairly simple display if it's
> only 10 LOC in JS to build it.
>
> 10LOC, yep its for simple results, such twitter post, github notify, or
> something else
> in my project, we use haml, we can simplify use jshaml tools, for simplify
> create dom elements in js
>

 In my project we have very complex display logic (major sports betting
site), so I certainly wouldn't want to rewrite the 15-20 classes that
determine display logic in to JS :-)

> This shows how we're obviously working on different projects :-)
>
> I would say, as far as we are working on projects with a completely
> different level of thoughtfulness interface ;-)
>

 Not sure how to take that, but as there's a smiley I assume you meant no
offence...

Cheers,


Andy

-- 
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-t...@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