[Rails] Re: Unit testing & Functional testing. Noob questions

2012-01-16 Thread Nopik
While unit testing tests each element separately, functional tests are aiming at testing system as a whole. I.e. unit testing do not check how elements work together. Moreover, over the course of project code changes. So, new bugs are introduced, too. Things which seem impossible at the moment ('w

[Rails] Re: Facebook Application on rails3.0.9 fb dialog issue.

2011-09-25 Thread Nopik
> >> Does anyone know how to redirect to the facebook permissions page properly? > > Use top.location, not window.location. > > In which place I have to use top.location . > I am using gems > gem 'omniauth', '>= 0.2.6' I'm not sure how to do it using omniauth. In my apps I do it manually, having c

[Rails] Re: Facebook Application on rails3.0.9 fb dialog issue.

2011-09-24 Thread Nopik
On Sep 23, 9:46 am, subbarao wrote: > When a user accesses my facebook app viahttp://apps.facebook.com/myappx, > I want it to immediately show the > request permissions fb dialog - like so many others do. > > The problem is that it shows a big facebook icon instead of the request > permission

[Rails] Re: Magic Multi Connections gem + Rails 3.1

2011-09-09 Thread Nopik
sources without a clue, today problem was solved in 10 minutes. If you still think that RubyMine is too expensive, thinkg again ;) My temporary solution is at https://github.com/Nopik/magic_multi_connections though I consider it as dirty hack, not production code. Rails 3.0 compatibility is b

[Rails] Magic Multi Connections gem + Rails 3.1

2011-09-08 Thread Nopik
Hello, Like in topic, did anyone tried to run this gem under 3.1? I'm getting error that mirror_db_connection is not valid key: ArgumentError: Unknown key: mirror_db_connection from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/ activesupport-3.1.0/lib/active_support/cor

[Rails] Re: Your bundle is complete! It was installed into ./rmagick

2011-07-30 Thread Nopik
Same here! I ended up having all gems in ./asin, which was painful.. even 'whole project search' in rubymine was finding things there ;) bundle install should warn about this.. On Jul 30, 9:58 am, Pete wrote: > Thank you so much - this was driving me crazy!!! > bundle path in config was set to r

[Rails] Re: Rails 3.1 CoffeeScript not working

2011-07-23 Thread Nopik
> they load inside application.js like this > > (function() { >   $('#events a').lightBox(); >   $(document).ready(function() { >     $("#slider").easySlider({ >       auto: true, >       continuous: true >     }); > > }); Isn't .call(this) missing at the end? The function is not called at all, no