ok, that's works fine.
and so, i need to include jquery-ui-all inside my application.js file to
see it working.
Also, write my js files with coffeescript that's work fine (extend by
.js.coffee... and sometimes by .erb more works fine too).
For render it easy, i include in a span: onclick="window.open_me(this)",
and then, in my js file (write under coffeescript) write inside my
assets/javascripts directory, i create my referenced fonction open_me
for create and pass for each the diolg box params. in an other js file,
i tell him to destroy them when an other search has been asked.
For automatic (AJAX) render when a selection trouth select selectors, in
the same js file inside the assets pipeline, i add some event function
for call a submit targeted on my sort form (this form is remote:
true...).
my index.js file who is on my views/movies directory do the job for
destroy the old dialog constructors and render the pagination (kaminari)
partial and also my movie list render partial.
For sugar... i add on my search input a function to delay my "keyup"
events...
Like this, all works perfectly.
So... i'm a newbie on rails and i need to clean my code (some of my sort
function is inside my movies_controller... i think it will be beter to
do it by my sortmovies helper... but i'm not sure.
Thanks for help.
When all will be "clean" (i hope), i will pass my git directory for help
other newbies (because now... i think it would not be a good exemple due
to a dirty code).
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/999d24630f00ef1b41953055d14c07f6%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment