logics_controller.rb revision ec4b26551f089e6fac410aba49bfcd8e7fae6536
#
# Controller for Logics
#
respond_to do |format|
format.json do
#language = Language.find(params[:id])
#language.supports.each do |support|
# @logics.delete support
#end
end
end
end
def add_language
resource.add_language(Language.find_by_name(params[:name]))
respond_to do |format|
format.html {redirect_to :action => 'show'}
end
end
def index
super do |format|
format.html do
@search = params[:search]
@search = nil if @search.blank?
end
end
end
def create
@logic.user = current_user
super
end
def show
super do |format|
format.html do
@supports = resource.supports.all
@mappings_from = resource.mappings_from
@mappings_to = resource.mappings_to
end
end
end
end