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