Commit ead86426
Changed files (5)
app
controllers
views
creations
tutorials
app/controllers/creations_controller.rb
@@ -14,6 +14,7 @@ class CreationsController < ApplicationController
# GET /creations/new
def new
@creation = Creation.new
+ @user = current_user
end
# GET /creations/1/edit
app/controllers/tutorials_controller.rb
@@ -11,6 +11,7 @@ class TutorialsController < ApplicationController
def new
@tutorial = Tutorial.new
+ @user = current_user
end
def edit
app/views/creations/new.html.erb
@@ -3,7 +3,10 @@
<h1>Share a new creation <small>(Step 1 of 2)</small></h1>
<% end -%>
<div class="row">
- <div class="span12">
+ <div class="span3">
+ <%= render "profiles/me_box" %>
+ </div>
+ <div class="span9">
<%= render 'form' %>
</div>
</div>
app/views/tutorials/_form.html.erb
@@ -5,7 +5,7 @@ $(function(){
});
</script>
<% end %>
-<div class="span8">
+<div class="span5">
<%= form_for(@tutorial, :html => {:class => "form-horizontal"}) do |f| %>
<fieldset>
<div class="control-group">
app/views/tutorials/new.html.erb
@@ -3,5 +3,8 @@
<h1>Share a new tutorial</h1>
<% end -%>
<div class="row">
- <%= render 'form' %>
+ <div class="span3">
+ <%= render "profiles/me_box" %>
+ </div>
+ <%= render 'form' %>
</div>