Sha256: 63cc0c05152d0884f3a2476903f347fb58aa284d4abc479818153563da2325cd

Contents?: true

Size: 689 Bytes

Versions: 11

Compression:

Stored size: 689 Bytes

Contents

class FoosController < ApplicationController
  def example
    @example = Bio::Foo::Example.find(params["id"])
    @examples = Bio::Foo:Example.all
    @togo=TOGOWS.entry('genbank', @example.gene_name)
    @shuttle =  "TEST CASE"
  end

  def index
    @index = "Something relevant"
  end

  def show
    @item = "It's me"
  end

  def new
    @example =  Bio::Foo::Example.new
  end

  def create
    @example = Bio::Foo::Example.new(params[:example])
    if @example.save
      redirect_to example_url(@example)
    else
      # This line overrides the default rendering behavior, which
      # would have been to render the "create" view.
      render :action => "new"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bio-gem-1.3.6 lib/bio-gem/templates/foos_controller
bio-gem-1.3.5 lib/bio-gem/templates/foos_controller
bio-gem-1.3.4 lib/bio-gem/templates/foos_controller
bio-gem-1.3.3 lib/bio-gem/templates/foos_controller
bio-gem-1.3.2 lib/bio-gem/templates/foos_controller
bio-gem-1.3.1 lib/bio-gem/templates/foos_controller
bio-gem-1.3.0 lib/bio-gem/templates/foos_controller
bio-gem-1.2.2 lib/bio-gem/templates/foos_controller
bio-gem-1.2.1 lib/bio-gem/templates/foos_controller
bio-gem-1.2.0 lib/bio-gem/templates/foos_controller
bio-gem-1.1.2 lib/bio-gem/templates/foos_controller