This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @sports_news_feeds = SportsNewsFeed.where('created_at >= ?', 2.days.ago); | |
| @off_beat_news_feeds = OffBeatNewsFeed.where('created_at >= ?', 2.days.ago); | |
| @entertainment_news_feeds = EntertainmentNewsFeed.where('created_at >= ?', 2.days.ago); | |
| @mashup_news_feeds = @sports_news_feeds + @off_beat_news_feeds + @entertainment_news_feeds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| git add --all | |
| git commit -am $1 | |
| git push origin master | |
| git push live | |
| cap deploy:update | |
| cap deploy:migrate | |
| cap deploy:restar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index | |
| @movies = Dir.glob("public/movies/*/*") | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.xml { render xml: @movies } | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index | |
| @movies = Dir.glob("public/movies/*/*") | |
| @sports = Dir.glob("public/movies/Sports/*") | |
| @entertainments = Dir.glob("public/movies/Entertainment/*") | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.xml { render xml: @movie } | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def index | |
| @movies = Dir.glob("public/movies/*/*") | |
| @sports = Dir.glob("public/movies/Sports/*") | |
| @entertainments = Dir.glob("public/movies/Entertainment/*") | |
| respond_to do |format| | |
| format.html # index.html.erb | |
| format.xml { render xml: @movie } | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <movies> | |
| <sports> | |
| <sportsFilename1</sport> | |
| </sports> | |
| <entertainments> | |
| <entertainment>Filename1</entertainment | |
| </entertianments> | |
| </movies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <movies> | |
| <sports> | |
| <sportsFilename1</sport> | |
| </sports> | |
| <entertainments> | |
| <entertainment>Filename1</entertainment | |
| </entertianments> | |
| </movies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xml.instruct! | |
| xml.movies do | |
| @sports.each do |sport| | |
| xml.sport sport | |
| end | |
| @entertainments.each do |entertainment| | |
| xml.entertainments entertainment | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <movies><sport>public/movies/Sports/test</sport><entertainment>public/movies/Entertainment/Entertainment213</entertainment></movies> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Twilio::REST::RequestError in SendTextController#send_text_message | |
| The 'From' number +113142000751 is not a valid phone number or shortcode. | |
| Rails.root: /home/afresta/rails_projects/TSHIRT_TEXT | |
| Application Trace | Framework Trace | Full Trace | |
| app/controllers/send_text_controller.rb:16:in `send_text_message' | |