p#notice = notice

p
  strong Name:
  = @idea.name
p
  strong Description:
  = @idea.description
p
  strong Picture:
  br
  = image_tag(@idea.picture_url, width: 600) if @idea.picture.present?

h3
  Comments
  /- @comments.to_a.each do |comment|
  - @comments.each do |comment|
    div
      strong
        = comment.user_name
      br
      p
        = comment.body
      p
        = link_to 'Delete', comment_path(comment), method: :delete, data: { confirm: 'Are you sure?' }

= render 'comments/form'

= link_to 'Edit', edit_idea_path(@idea)
'|
= link_to 'Back', ideas_path

p#notice = notice

.row
  .col-md-9
    = image_tag(@idea.picture_url, width: '100%') if @idea.picture.present?
  .col-md-3
    p
      strong Name:
      = @idea.name
    p
      strong Description:
      = @idea.description

    h3
      Comments
      /- @comments.to_a.each do |comment|
      - @comments.each do |comment|
        div
          strong
            = comment.user_name
          br
          p
            = comment.body
          p
            = link_to 'Delete', comment_path(comment), method: :delete, data: { confirm: 'Are you sure?' }

    = render 'comments/form'

    = link_to 'Edit', edit_idea_path(@idea)
    '|
    = link_to 'Back', ideas_path

Update idea details page design
Update idea details page design

gouf/app_railsgirls,gouf/app_railsgirls,gouf/app_railsgirls