diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 195d8d7..2ab710f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -3,14 +3,5 @@ module ApplicationHelper def current_database ActiveRecord::Base.connection().current_database end - - def create_tab(tab_name, tab_controler, tab_action) - link_to_unless_current("#{tab_name}", {:controller => "#{tab_controler}", :action => "#{tab_action}"}) do - output = '' - output << tab_name - output << '' - output - end - end -end \ No newline at end of file +end diff --git a/app/helpers/tabs_helper.rb b/app/helpers/tabs_helper.rb new file mode 100644 index 0000000..1b71064 --- /dev/null +++ b/app/helpers/tabs_helper.rb @@ -0,0 +1,10 @@ +module TabsHelper + def create_tab(tab_name, tab_controller, tab_action) + link_to_unless_current("#{tab_name}", {:controller => "#{tab_controller}", :action => "#{tab_action}"}) do + output = '' + output << tab_name + output << '' + output + end + end +end