class RenderPartialWithRecordIdentificationController

Public Instance Methods

render_with_belongs_to_association() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 30
def render_with_belongs_to_association
  @reply = Reply.find(1)
  render partial: @reply.topic
end
render_with_has_many_and_belongs_to_association() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 6
def render_with_has_many_and_belongs_to_association
  @developer = Developer.find(1)
  render partial: @developer.projects
end
render_with_has_many_association() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 11
def render_with_has_many_association
  @topic = Topic.find(1)
  render partial: @topic.replies
end
render_with_has_many_through_association() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 20
def render_with_has_many_through_association
  @developer = Developer.first
  render partial: @developer.topics
end
render_with_has_one_association() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 25
def render_with_has_one_association
  @company = Company.find(1)
  render partial: @company.mascot
end
render_with_record() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 35
def render_with_record
  @developer = Developer.first
  render partial: @developer
end
render_with_record_collection() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 40
def render_with_record_collection
  @developers = Developer.all
  render partial: @developers
end
render_with_record_collection_and_spacer_template() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 45
def render_with_record_collection_and_spacer_template
  @developer = Developer.find(1)
  render partial: @developer.projects, spacer_template: "test/partial_only"
end
render_with_scope() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 16
def render_with_scope
  render partial: Reply.base
end