Skip to content
Browse files

works more or less with ruby1.9.3 and rails 3.2.2

  • Loading branch information...
1 parent 496023e commit c0ba9bd54308bca79642de7d6a07316ed704f1a6 Ace Suares committed
View
2 bin/inline_forms
@@ -171,7 +171,7 @@ puts "Creating header in app/views/inline_forms/_header.html.erb...\n"
header_src = "
<div id='Header'>
<div id='title'>
- #{app_name} v<%= inline_forms_version -%>
+ #{app_name} v<%= 'inline_forms_version' -%>
</div>
<% if cancan_enabled? -%>
<div id='logout'>
View
5 lib/app/helpers/inline_forms_helper.rb
@@ -7,6 +7,9 @@ module InlineFormsHelper
require form_element
end
+ def inline_forms_version
+ INLINE_FORMS::VERSION
+ end
private
# used as class name
@@ -69,7 +72,7 @@ def link_to_inline_edit(object, attribute, attribute_value='')
send( 'edit_' + object.class.to_s.underscore + '_path',
object,
:attribute => attribute.to_s,
- :form_element => calling_method.sub(/_[a-z]+$/,''),
+ :form_element => calling_method.sub(/_[a-z]+$/,'').sub(/block in /,''),
:update => css_class_id ),
:remote => true
else
View
2 lib/app/views/inline_forms/_edit.html.erb
@@ -1,4 +1,4 @@
-<%= form_tag send(@object.class.to_s.underscore + '_path', :update => @update_span ,
+<%= form_tag send(@object.class.to_s.underscore + '_path', :update => @update_span,
:attribute => @attribute,
:form_element => @form_element,
:sub_id => @sub_id ),
View
2 lib/inline_forms/version.rb
@@ -1,3 +1,3 @@
module InlineForms
- VERSION = "1.3.10"
+ VERSION = "1.3.11"
end

0 comments on commit c0ba9bd

Please sign in to comment.
Something went wrong with that request. Please try again.