Sha256: f28408e3bf866436a9e01fa2bf742ca8c97600df3b7f152affef51b8515bacb8
Contents?: true
Size: 1.37 KB
Versions: 5
Compression:
Stored size: 1.37 KB
Contents
# # Project BivouacSample # # Created using bivouac on Fri Apr 18 17:49:47 +0200 2008. # Copyright (c) 2008 __My__. All rights reserved. # module BivouacSample::Views def edit_in_place html do head do javascript_include_tag :defaults stylesheet_link_tag "coderay" end body do table :border => 1 do tr do td "Test this : " td do editable_content( :content => { :element => 'b', :text => "Welcome", :options => { :id => "test_1", :class => 'editable-content' } }, :url => R( EditInPlace ), :ajax => { :okText => "'Ok, change!'", :cancelText => "'Nevermind'" } ); text " le monde" end end tr do td "Mais pas ça" td "Hop" end end hr p { span "Source du controller "; tt "app/controller/edit_in_place.rb" } highlight_file( File.dirname( __FILE__ ) + "/../controllers/edit_in_place.rb", :id => "source0") p { span "Source de la vue "; tt "app/views/edit_in_place.rb" } highlight_file( __FILE__, :id => "source1" ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems