Compare commits
No commits in common. "4d6c69be51ce125f68546140ee23b140f2968d6f" and "b3c94af2e8c377542ffe1d14a0b273de0a18cda5" have entirely different histories.
4d6c69be51
...
b3c94af2e8
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ class SitesController < ApplicationController
|
|||
private
|
||||
|
||||
def site
|
||||
@site ||= Site.first || Site.create(title: 'Ectomobile')
|
||||
@site ||= Site.first || Site.new
|
||||
end
|
||||
|
||||
def site_params
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- if (site = Site.first)
|
||||
- if site.logo.attached?
|
||||
- if site.logo
|
||||
= image_tag url_for(site.logo)
|
||||
|
||||
%h1= site.title
|
||||
|
|
Loading…
Reference in a new issue