Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This works
- News.create ( :title => titles[1].to_s.gsub(/<\/?[^>]*>/, "").strip )
- titles.each do |t|
- #This does not - "slug.name can not be blank."
- News.create ( :title => t.to_s.gsub(/<\/?[^>]*>/, "").strip )
- end
Add Comment
Please, Sign In to add comment