diff options
author | James Gifford <james@jamesrgifford.com> | 2011-09-12 10:30:45 -0400 |
---|---|---|
committer | James Gifford <james@jamesrgifford.com> | 2011-09-12 10:30:45 -0400 |
commit | d7154d483269fc25d771d5b8b7b8a2c889e4b3f5 (patch) | |
tree | 903afe48e0393578c54b42d050a85f8770e93121 /railties/guides/code/getting_started/app/helpers | |
parent | 4bcacc80667a548664b5ca09d85074c6c383748e (diff) | |
download | rails-d7154d483269fc25d771d5b8b7b8a2c889e4b3f5.tar.gz rails-d7154d483269fc25d771d5b8b7b8a2c889e4b3f5.tar.bz2 rails-d7154d483269fc25d771d5b8b7b8a2c889e4b3f5.zip |
Added getting_started code, updated guide with link to rails github repo and path to code
Diffstat (limited to 'railties/guides/code/getting_started/app/helpers')
4 files changed, 11 insertions, 0 deletions
diff --git a/railties/guides/code/getting_started/app/helpers/application_helper.rb b/railties/guides/code/getting_started/app/helpers/application_helper.rb new file mode 100644 index 0000000000..de6be7945c --- /dev/null +++ b/railties/guides/code/getting_started/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/railties/guides/code/getting_started/app/helpers/comments_helper.rb b/railties/guides/code/getting_started/app/helpers/comments_helper.rb new file mode 100644 index 0000000000..0ec9ca5f2d --- /dev/null +++ b/railties/guides/code/getting_started/app/helpers/comments_helper.rb @@ -0,0 +1,2 @@ +module CommentsHelper +end diff --git a/railties/guides/code/getting_started/app/helpers/home_helper.rb b/railties/guides/code/getting_started/app/helpers/home_helper.rb new file mode 100644 index 0000000000..23de56ac60 --- /dev/null +++ b/railties/guides/code/getting_started/app/helpers/home_helper.rb @@ -0,0 +1,2 @@ +module HomeHelper +end diff --git a/railties/guides/code/getting_started/app/helpers/posts_helper.rb b/railties/guides/code/getting_started/app/helpers/posts_helper.rb new file mode 100644 index 0000000000..b6e8e67894 --- /dev/null +++ b/railties/guides/code/getting_started/app/helpers/posts_helper.rb @@ -0,0 +1,5 @@ +module PostsHelper + def join_tags(post) + post.tags.map { |t| t.name }.join(", ") + end +end |