Skip to content

Commit

Permalink
* environment.rb: RAILS_GEM_VERSION commented out, :password = 'passw…
Browse files Browse the repository at this point in the history
…ord'

* sanitize project URLs
  • Loading branch information
shreyankg committed May 26, 2010
1 parent 515fbd5 commit 9bcefea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def highlighted
end

def devide_link(links)
if links
if !(links.nil? || links == '')
out = []
links.split(',').each do |link|
out << link_to(link, link, :popup=> true) + '<br >'
out << link_to(link, link, :popup=> true)
end
out
else
Expand Down
4 changes: 3 additions & 1 deletion app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<p>
<b>URLs:</b>
<br />
<%= devide_link @project.urls %>
<% for url in devide_link(@project.urls) %>
<%= url %><br />
<% end %>
</p>
<p>
<b>Mentor:</b>
Expand Down
4 changes: 2 additions & 2 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
# RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
Expand Down Expand Up @@ -57,7 +57,7 @@

#Set authentication credentials appropriately
:user_name => "fsocmailer@gmail.com",
:password => <password>
:password => "password"
}

end

0 comments on commit 9bcefea

Please sign in to comment.