Stream

 
Hi Guys,

I just finished writing this tutorial about how to easily manage your javascript and css libraries in your Rails app with Bower. 

The big win for me was to stop using "gemified" Javascript libraries and css frameworks and have quickly access to libraries updates and bug fixes.

Let me know what you think.

http://dotwell.io/taking-advantage-of-bower-in-your-rails-4-app/

#Bower   #Javascript   #Css  
10
3
Tomé Ribeiro's profile photoKaruppasamy M's profile photoJoseph Preston's profile photoMourad De Clerck's profile photo
5 comments
 
It's so nice to see new ruby gems repo. #rails-assets.org
Add a comment...

Mike Adeleke

News & Cool Stuff  - 
 
I just found the greatest chrome extension ever. Feel free to try it. It helps you save coding articles and see what other developers have saved too. 
1
Add a comment...

Joe Ekiert

Looking for help...  - 
 
Has anyone attempted to perform rspec tests utilizing two running projects?

I currently have a two projects:

1. API that serves as the back end.
2. Public facing platform.

The #2 project makes calls to #1 in order to create/read/update/delete records.

I've heard rumors that rspec testing with two parallel projects is not possible, but I'm interested in at least looking at a few discussions about it. My google fu may just not be that great today and all I can find are resources for speeding up rspec tests.

Is this possible or will I need to locate some sort of Gem that can help us create fake responses (and need us to create separate tests for each project)?

edit: here's my question on stackoverflow.com,
http://stackoverflow.com/questions/23067747/rails-spec-testing-with-multiple-projects
1
Joe Ekiert's profile photoIonuț Dorobanțu's profile photo
3 comments
 
Webmock? 
Add a comment...

Sebastian Georgi

News & Cool Stuff  - 
 
I recently had to establish an ActionMailer configuration on Heroku. Since I did not want to put my credentials into the project's Github repository, I found the following most useful. It may not be rocket science, but it's a nice way to put private Information (like SMTP-credentials or AWS-keys) onto a Heroku instance
1
Thisadee Preeyawongsagul's profile photo
2 comments
 
dad with Roty
Add a comment...

Christian Rolle

News & Cool Stuff  - 
 
The Ruby on Rails ORM ActiveRecord encapsulates all the inconvenient SQL stuff which keeps the code maintainable and secure (think of SQL injection). For example the model: class Person < ActiveRecord::Base attr_accessible :...
3
Add a comment...

Rene Paulokat

News & Cool Stuff  - 
 
I ran into some difficulties when i tried to create a rails 4  engine and make it testable with rspec and factory_girl - 
for those interested in a working simplified example:  https://github.com/erpe/rails_engine_rspec
may it be of  use...
1
Add a comment...

Jeff Lunt
owner

News & Cool Stuff  - 
2
Lauralee Flores's profile photo
 
I got an email from heroku yesterday about this.  I was able to fix two of my apps that were affected by following their simple instructions:

Check if you’re affected
Run the following on your app:
$ heroku run “ruby -rpsych -e \”p Psych.libyaml_version.join(‘.’)\”” -a <app name>

If you see the following error message, then you are not vulnerable and can ignore the rest of this email:

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- psych (LoadError)
 from <internal:lib/rubygems/custom_require>:29:in `require'
If you are using Psych, the command will return a version number.  If the version returned is less than 0.1.6 you are vulnerable. Please follow the instructions below.


If you do not explicitly use the Psych Gem
If you don’t explicitly use the Psych gem and you’re on Ruby 1.9.2+, you’ll need to push a new commit to your app, which will cause a deploy and update your version of ruby automatically. If you don’t want to push any actual changes, this commit can be empty:
$ git commit --allow-empty -m “upgrade ruby version”

$ git push heroku master


If you use the Psych Gem < v2.0.5
If you’re using the Psych gem in your Gemfile, update Psych to 2.0.5 which includes libyaml 0.1.6. Change the Psych gem line to:
gem ‘psych’, ‘~> 2.0.5’

Then update your gems, commit, and push.

$ bundle update psych

$ git add Gemfile Gemfile.lock

$ git commit -m “update libyaml to 0.1.6, CVE-2014-2525”

$ git push heroku master
Add a comment...

Jodoo Shi

News & Cool Stuff  - 
 
Preview emails for any user with Rails 4.1

http://goo.gl/YX2kSb
3
2
Louis-Philippe ENGELMANN's profile photoSerg Puhoff's profile photoJohn Peebles's profile photo
Add a comment...

Denny Mueller

Discussion & Meta  - 
 
Does anybody know something about whats up with railscasts.com?
Its not even online anymore oO, I should have downloaded all the Pro stuff when I had the chance :(
3
Tyler Presley's profile photoDana Nourie's profile photo
12 comments
 
It's still here: http://railscasts.com/  I think Ryan Bates went totally AWOL on us on though. I wish he'd come back and do a bunch of Rails 4 demos. His railscasts are excellent.
Add a comment...

About this community

Rails, with a focus on technical news and cool articles from the people in the community. Certain types of posts tend to be off-topic for this community: > Job postings or solicitation of work > Advertisements for commercial services > Links with referral codes (esp. where the poster stands to benefit) > Repeat usage of the community for self-promotion > Posts from an organization, rather than an individual > Posts that are about more general programming topics, and are specific neither to Ruby, nor Rails

Jean-Philippe Boily

News & Cool Stuff  - 
 
Any serious project nowadays needs background processing, right? Most of the Ruby community uses Sidekiq or Resque but there are other options. One is QueueClassic. QueueClassic uses PostgreSQL instead of Redis for Sidekiq. Why should you use it?
5
Jean-Philippe Boily's profile photo
3 comments
 
Oh, forgot about it, but it also uses PG's pub/sub!
Add a comment...
 
Anybody interested in reviewing a recently published Rails Book?

I have a few e-copies of Rails 4 Application Development: Hotshot (http://www.packtpub.com/rails-4-application-development-hotshot/book) available for review.

If you are interested, kindly follow these steps:
1. Drop an email to me with the subject line as “Rails 4 Application Development: Hotshot” on mritunjaib@packtpub.com

2. State in your email your choice of websites for posting your book-review (can be your blog or website, Amazon, Goodreads, DZone, Slashdot)

For more information, visit the book page:
(http://www.packtpub.com/rails-4-application-development-hotshot/book)
1
Add a comment...

Christian Rolle

Discussion & Meta  - 
 
Some models should not be deleted, but deactivated for very comprehensible reasons: Restoring the record Documenting the record in pre deletion points in time Statistics The migration for adding the new boolean 'active' col...
1
Add a comment...

Daniel Kehoe

News & Cool Stuff  - 
7
Thisadee Preeyawongsagul's profile photo
Add a comment...

Jeff Dickey

Looking for help...  - 
 
Working through Avdi Grimm's Objects on Rails tutorial, using it as a test bed for some other bits (full spec coverage, namespaces and service objects, the latter two of which make no sense to me as the problem here, but feel free to educate me).

Made it as far as the "Submitting posts" page, where he adds a private method as a before_filter to ApplicationController. Running the server shows that the before_filter does indeed fire as expected.

However, no such sense is made in my RSpec specs. You'll see that, at line 6 of the ApplicationController source, there's a before_filter specified. If I do not send the message explicitly (see line 10 of the spec, below), then the @blog insance variable is never set. I've been looking on GOogle and SO and etc for some ephemeral clue, and really am at a loss here. WTF indeed.

Any pointers gratefully appreciated.

Configuration:

Ruby 2.0.0p451
Rails 3.2.17
RSpec 2.14.8
1
Jeff Dickey's profile photoDenny Mueller's profile photo
2 comments
 
D'oh! I really ought to get some sleep one of these nights; I'd wager that would dramatically improve productivity and quality of questions. Thanks!
Add a comment...

Sunny Juneja

Looking for help...  - 
 
Does anyone with some TDD kung fu mind taking a look at this? I'm trying to check if an object is created in a controller with #rspec .

http://stackoverflow.com/questions/22889085/testing-mocking-workers-in-controller-specs
1
Sunny Juneja's profile photoSebastian Wramba's profile photo
3 comments
 
Hey +Sebastian Wramba , thanks for providing some guidance. Check my comment for an update.
Add a comment...

Pramod Shinde

Discussion & Meta  - 
1
Add a comment...

Joshua Kidd

Looking for help...  - 
 
Need some help with rails :P
3
Add a comment...

Christian Rolle

News & Cool Stuff  - 
 
If your Ruby on Rails application contains too much routes, you should reduce them. For example this routes.rb (taken from my previous post Simple RESTful Ruby on Rails routes): resources :people offers those routes (doing ...
1
Add a comment...

Jeff Dickey

Discussion & Meta  - 
 
There are things you need to do to make what you're working on work the way it's supposed to. Getting those things to work can be… an interesting challenge. In the purest Chinese-curse sense of the word.
1
Add a comment...