forked from diaspora/diaspora-project-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rails 4 * Puma * Codestyle * Keep secret token outside the VCS
- Loading branch information
Showing
30 changed files
with
1,478 additions
and
1,632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SECRET_TOKEN=042be13d1ba39c41697d4d0904f9eceda32eaa381185af25aad9d26a7047171b0f5b46901aa1f851de20e7faf038c6d0d76b896e5af40326287ea224c9c19b9f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,4 +376,4 @@ section { | |
color: #666; } | ||
#CC-licence a { | ||
font-size: 10px; | ||
color: #666; } | ||
color: #666; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
class BlogController < ApplicationController | ||
respond_to :html | ||
|
||
def show | ||
end | ||
|
||
def index | ||
end | ||
|
||
def create | ||
Blog.create person_params | ||
end | ||
|
||
def update | ||
blog = Blog.find params[:id] | ||
blog.update_attributes! person_params | ||
redirect_to blog | ||
end | ||
|
||
private | ||
|
||
def blog_params | ||
params.require(:blog).permit :title, :published, :content | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
class PagesController < ApplicationController | ||
respond_to :html | ||
|
||
def index | ||
end | ||
|
||
def about | ||
end | ||
|
||
def get_involved | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module ApplicationHelper | ||
def page_title(title, suffix = t(:title)) | ||
if title.blank? or title =~ /home/i | ||
return suffix | ||
def page_title title, suffix = t(:title) | ||
if title.blank? || title =~ /home/i | ||
suffix | ||
else | ||
return "#{title} - #{suffix}" | ||
"#{title} - #{suffix}" | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
class Blogpost < ActiveRecord::Base | ||
attr_accessible :title, :published, :content | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
class User < ActiveRecord::Base | ||
devise :database_authenticatable, :recoverable, | ||
:rememberable, :trackable, :validatable | ||
|
||
attr_accessible :email, :password, :password_confirmation, :remember_me | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<%- content_for :page_title do %> | ||
<%= t('pages.blog.menu_title') %> | ||
<%= t 'pages.blog.menu_title' %> | ||
<% end %> | ||
|
||
<div class="page-header"> | ||
<h1><%= t('pages.blog.headline') %> <small><%= t('pages.blog.subline') %></small></h1> | ||
<h1><%= t 'pages.blog.headline' %> <small><%= t 'pages.blog.subline' %></small></h1> | ||
</div> | ||
|
||
Ohai, blog! |
Empty file.
Oops, something went wrong.