Permalink
Browse files

Change getting started link to answer

  • Loading branch information...
1 parent cf1b3c2 commit 5e59f5a103a5f78ac97fc8600cc9094a1895b10d Alex Bredariol Grilo committed Oct 19, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/welcome_controller.rb
  2. +1 −1 app/views/welcome/_getting_started.html.haml
@@ -34,7 +34,7 @@ def home
@news_items = filter_news_items
@questions = Question.latest.limit(10) || [] if @news_items.empty?
- @getting_started = Question.find_by_slug_or_id("4d404ee779de4f25ff000507")
+ @getting_started = Answer.find_by_id("4d42bebf79de4f262d000e4b")
set_tab :all, :welcome_home
render 'home'
@@ -6,5 +6,5 @@
%li.entry.item.getting_started
-# Question Summary
= link_to image_tag("getting_started_close.png", :class => "close-image"), set_not_new_user_path(current_user), {:class => 'close-link'}
- %h3= link_to title, question_path(getting_started), {:title => truncate(getting_started.body, :length => 200), :class => "question"}
+ %h3= link_to title, question_answer_path(getting_started.question, getting_started), {:title => truncate(title, :length => 200), :class => "question"}
.clear

0 comments on commit 5e59f5a

Please sign in to comment.