Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: neolee/iiht
base: 4adb30cb41
...
head fork: neolee/iiht
compare: ced13beeb9
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 2 deletions.
  1. +2 −2 main.rb
View
4 main.rb
@@ -13,7 +13,7 @@ class Main < Base
end
# Filters
- ["/", "/posts/*"].each do |path|
+ ["/", "/posts/*", "/users/*"].each do |path|
before path do
if !session[:user_id] then
session[:previous_url] = request.path
@@ -69,7 +69,7 @@ class Main < Base
:body => params[:body],
:created_at => Time.now
)
- post.user = User.first(:id => session[:user_id])
+ post.user_id = session[:user_id]
post.save
redirect '/posts/'

No commit comments for this range

Something went wrong with that request. Please try again.