how to pass the value to jquery from views in rails? -


i have requirement need show new form in same window have listed items , edit form in same page. have run

rails generate scaffold item name:string 

which default created needed , made use of jquery show new form in index page on clicking text how can make edit form appear in same page. need know how can send id on clicking jquery , form populated value. please me.

i suggest should try inline editing railscast : inlineediting. rather going jquery , ajax manually.

and same page having new form : using ajax rjs


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -