-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheat-sheet.rb
More file actions
39 lines (24 loc) · 1.19 KB
/
cheat-sheet.rb
File metadata and controls
39 lines (24 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
rails g scaffold Post title:string description:text content:text
#breites Bild
rails g scaffold Post title:string description:text content:text --cover_display section
#Bild oben
rails g scaffold Page title:string description:text content:text --cover_display top
rails g add_cover Post
rails g tinymce Post
rails g tinymce Post --name_of_attribute content
rails g add_search_field Post
rails g add_many_to_many_relationship Account --model slide
rails g add_many_to_many_relationship Account --model option
<section class="page-cover-bg" style="background-image: url('<%%= url_cover %>'); height: <%%= height_of_cover %>px;">
<div class="container d-flex align-items-start justify-content-center h-100 pt-2">
<%%#= image_tag("logo_stinah_ws_vektor.png", class: "img-fluid mb-4 rounded overlay-darker", style: "height: 180px;") %>
</div>
</section>
"https://player.vimeo.com/video/334631596?muted=1&autoplay=1&loop=1&title=0&byline=0&portrait=0"
Submission.all.each_with_index do |sub, index|
sub.update(appearance_date: Date.today - index.weeks)
end
Submissian.all.each do |sub|
sub.update(appearance_date: sub.created_at.to_date)
end
Submission.find_each(&:save)