It currently exports to HTML, CSV, XML and JSON. So there is no dependency on any 3rd party library other than Kaminari (for pagination - which is also soon to be changed - so you can plug any pagination library or use will_filter's one).
You just gave me a great idea to add support for PDF. Thank you. I will research which PDF gem would be the best one to use. Very well could be Prawn PDF.
Btw, currently you can plug your own exporters/formats into your custom filter object, so you could generate sophisticated reports. At Geni, we use a few custom reports for various tables.
when the first time using Asset Pipeline in production mode and get the "We're Sorry, but something went wrong." i thought that i was alone.. and then Google saved me :))
The service lives on as an OSS project. It takes roughly 10-15 minutes to get an existing application fully working on the heroku cedar stack. The code lives on here: https://github.com/copycopter
Looks pretty nice. Have you tried using will_filter gem? It does similar things, and it also allows you to build powerful queries as well as save filters and share them across multiple users. You can build an entire admin tool in just 5 lines of code.
I am working on a new app in rails 3.2.2 with rspec 2.9 and I'm getting an error when testing emails that have been sent.
In the example here ryan you use this line 'last_email.to.should include(user.email)' which worked fine before but now I'm getting an error on this which says
'Failure/Error: last_email.to.should include(user.email)
NoMethodError:
undefined method `to' for nil:NilClass'
Nice cast, Ryan. Thank you! I wrote article in my blog a few weeks ago. Those article about deploying rails 3 application to heroku and assets to s3. I hope this theme will be interesting too for you and it is reasonable to make the next railscast about this kind of deploying assets.
Hi, anyone got a clue why this would happen to me?
console
$ cap deploy:setup
./config/deploy.rb:3:in`load': compile error (SyntaxError)
./config/deploy.rb:3: syntax error, unexpected ':', expecting $end
server "176.34.96.44", :web, :app, :db , primary: true
^
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:89:in `load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in`load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in `each'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in `load'
from Capfile:5:in`load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:172:in `load_from_file'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:89:in `load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in`load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in `each'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/configuration/loading.rb:86:in `load'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:65:in`load_recipes'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:65:in `each'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:65:in `load_recipes'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:31:in`execute!'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/lib/capistrano/cli/execute.rb:14:in `execute'
from /usr/lib/ruby/gems/1.8/gems/capistrano-2.11.2/bin/cap:4
from /usr/bin/cap:19:in `load'
from /usr/bin/cap:19
May be you can open source some of your thoughts in a demo application? This way, we can all benefit from your knowledge. I do. Here is my open source File Manager app:
1) If you're not relying on sprockets - say if you're using Compass to @import other stylesheets, your going to have to specify them in your production.rb. There is a commented-out config option to provide an array of files that should be pre-compiled.
2) Permissions. Still struggling with this one, but just keep an eye out for your web server's user/group having access to the public and tmp directories. (Perhaps not exactly related to the pipeline, but this is something that can come up while trouble shooting asset pipeline problems)
I have been using datatables since it first came out and rely on its features for all my statistical production sites. Even though I love watching all of the railscasts produced here, I don't find this one particularly rewarding. I find my own use of streamlined helpers to be enough to work with and extend any of the datatables features.
One noticeable trend I'm finding others do, which I will not, is to become too dependent on gems that aren't necessary. jQuery UI, datatables, and a host of other jQuery related feature code works great right out of the box. Some gem authors update their code and keep it up to date, and others fall off and forget their code after time. Becoming too dependent on gems for features that are clearly outlined and easily usable out of the box seems counter-productive to me.
Dear Ryan,
Use use rsync -r . root@72.14.183.209:/var/chef & ssh root@72.14.183.209 "chef-solo -c /var/chef/solo.rb" each time when you want to roll up new recipes. Is there any way to do it with one command?
Hi
i'm using ActiveAdmin in my application. Reached to the dashboard page but when i have run "rails g active_admin:resource product" command, after that server is not running. I'm using Rails 3.2, Ruby 1.9.2. Can somebody help me... Thanks
/home/ali/MySite/app/admin/products.rb:1:in ': uninitialized constant Product (NameError) from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inblock in load!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:187:in routes' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin.rb:78:inroutes' from /home/ali/MySite/config/routes.rb:2:in block in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:in eval_block' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:260:indraw' from /home/ali/MySite/config/routes.rb:1:in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inblock in load_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inload_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:16:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:108:inreload_routes!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:34:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:61:inblock in attach!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:429:in _run1902147173993390372prepare4025180163458367323callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in__run_callback' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in _run_prepare_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:inrun_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:74:in prepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:48:inprepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/finisher.rb:47:in block in module:Finisher' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:in run' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:55:inblock in run_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:inrun_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:136:in initialize!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /home/ali/MySite/config/environment.rb:5:in ' from /home/ali/MySite/config.ru:4:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:in instance_eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:ininitialize' from /home/ali/MySite/config.ru:1:in new' from /home/ali/MySite/config.ru:1:in' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:in eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:inparse_file' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:200:in app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:46:inapp' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:301:in wrapped_app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:252:instart' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in start' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:55:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in tap' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'
There are actually a number of cookbooks which have open pull requests to add OSX support to them. It's quite easy to add support yourself and contributing back to the project!
Thanks! Spent hours on making precompiling work. I also had problems with errors in external js files like the ckeditor. Had to fork the git and correct the errors to complete the precompiling.
Using the source code for this episode: store-after-less, I'm getting a Less::ParseError that 'reset.less' wasn't found. I've tried googling this issue and have not found a solution yet. I don't know if this is an issue with the less gem or with the twitter-bootstrap-rails gem.
Any idea on how to add a restriction to the number of user sessions with this approach? What I'd like to have is one browser window per user. Opening the app in another browser window would display a warning, signing in from another browser window would also display a warning+a choice to destroy the other session.
I am actually trying to scrap a website full of ajax and mechanize does not really work fine in this case. I have found that some people are using watir or capybara to do so. Do you know any other simpler solutions?
I am trying to get highlighting working with the railscast code.
I have set text :content,:stored => true. And tried
@search = Article.search do
fulltext params[:search] {minimum_match 1} do
hightlight :content
end
I read that ngrams causes trouble, so I've tried with and without, but no success. I can't tell if trouble is in my setup for solrconfig, schema, articles model or controller. Stopping and restarting solr with each change is key since it reads schema and solrconfig only when it starts.
Anyone have a working version to share or figured out steps to make it work?
+1 I just found this out myself and came here to see if anyone mentioned it. It's too bad the RVM site doesn't have a wiki. It's closed nature is beginning to be a sore point for me, especially because it seems to have quite a few gaps since Lion. I almost switched to RBEnv over this.
Re jquery UI datepicker and bootstrap (complicated by the best_in_place and simpleform gems), what worked for me was to not use the jquery ui rails gem, create a custom minimal jqueryUI package using the smoothness theme, then sub in from the css from http://addyosmani.github.com/jquery-ui-bootstrap.
Result: jquery UI datepicker works great, matches bootstrap 2.0.3.
I'm getting the same problem. I was actually able to go around it temporarily by running webrick from the app directory ($ rails s) and then hit my server at port 3000 (example.com:3000).
The last answer on this page suggests that maybe routes are not being created and thus the 500 error.
I'm running into an issue: the sortable order gets messed up if the users page does not match the database. This can happen if they are using an outdated view (didn't refresh page) or another user changed the order before they refreshed the page. Any idea how to resolve this? Perform a check somehow to see if the data matches the db before the sort, else redirect.?
I'm still trying to wrap my head around these concepts. Of the lot,I think your gem looks much more approachable. Would it be in any way possible to run this against a local vagrant install?
Even large chef users (e.g. Engine Yard) tend to use chef-solo and their own services to replicate/push cookbooks.
Chef-Server adds a runtime dependency and needs it's own complex replication/failover strategy. If you rely on (a hosted) chef-server and it goes down, you can't reconfigure existing or launch new servers. A big no-go imho.
Sure, for a couple of unimportant VMs it's awesome to play and get a feeling with. But if your setup grows, you really don't want to have implicit configuration (like every 30mins with chef-client) and go with an explicit/push-style configuration.
It currently exports to HTML, CSV, XML and JSON. So there is no dependency on any 3rd party library other than Kaminari (for pagination - which is also soon to be changed - so you can plug any pagination library or use will_filter's one).
You just gave me a great idea to add support for PDF. Thank you. I will research which PDF gem would be the best one to use. Very well could be Prawn PDF.
Btw, currently you can plug your own exporters/formats into your custom filter object, so you could generate sophisticated reports. At Geni, we use a few custom reports for various tables.
when the first time using Asset Pipeline in production mode and get the "We're Sorry, but something went wrong." i thought that i was alone.. and then Google saved me :))
Looks interesting. I've noticed it also has a 'Export data' feature does it need another gem e.g. Prawn PDF? Thanks.
The service lives on as an OSS project. It takes roughly 10-15 minutes to get an existing application fully working on the heroku cedar stack. The code lives on here: https://github.com/copycopter
Copycopter lives on as an OSS Project! The code lives here:
https://github.com/copycopter
Please submit an issue on on the copycopter gem!
https://github.com/copycopter/copycopter-ruby-client/issues
Ryan, thanks very much! I use Railscasts every day, finding answers to any questions. it is programmers' desk book indeed!
Looks pretty nice. Have you tried using will_filter gem? It does similar things, and it also allows you to build powerful queries as well as save filters and share them across multiple users. You can build an entire admin tool in just 5 lines of code.
https://github.com/berk/will_filter
Ignore this, I have sorted out the issue.
I had changed something in a method in my user.rb file which meant something in my database wasn't being set...
I am working on a new app in rails 3.2.2 with rspec 2.9 and I'm getting an error when testing emails that have been sent.
In the example here ryan you use this line 'last_email.to.should include(user.email)' which worked fine before but now I'm getting an error on this which says
'Failure/Error: last_email.to.should include(user.email)
NoMethodError:
undefined method `to' for nil:NilClass'
Any thoughts on this??
Nice cast, Ryan. Thank you! I wrote article in my blog a few weeks ago. Those article about deploying rails 3 application to heroku and assets to s3. I hope this theme will be interesting too for you and it is reasonable to make the next railscast about this kind of deploying assets.
Sorry about this issue. I will add a note and update the code to explain this.
On my Ubumtu server on AWS I'm not able to use rsync with the root user. Any ideas why?
Hi, anyone got a clue why this would happen to me?
Thx :)
May be you can open source some of your thoughts in a demo application? This way, we can all benefit from your knowledge. I do. Here is my open source File Manager app:
http://github.com/bruparel/file_manager
Two things not mentioned:
1) If you're not relying on sprockets - say if you're using Compass to @import other stylesheets, your going to have to specify them in your production.rb. There is a commented-out config option to provide an array of files that should be pre-compiled.
2) Permissions. Still struggling with this one, but just keep an eye out for your web server's user/group having access to the public and tmp directories. (Perhaps not exactly related to the pipeline, but this is something that can come up while trouble shooting asset pipeline problems)
I have been using datatables since it first came out and rely on its features for all my statistical production sites. Even though I love watching all of the railscasts produced here, I don't find this one particularly rewarding. I find my own use of streamlined helpers to be enough to work with and extend any of the datatables features.
One noticeable trend I'm finding others do, which I will not, is to become too dependent on gems that aren't necessary. jQuery UI, datatables, and a host of other jQuery related feature code works great right out of the box. Some gem authors update their code and keep it up to date, and others fall off and forget their code after time. Becoming too dependent on gems for features that are clearly outlined and easily usable out of the box seems counter-productive to me.
These are just my thoughts.
Dear Ryan,
Use use
rsync -r . root@72.14.183.209:/var/chef & ssh root@72.14.183.209 "chef-solo -c /var/chef/solo.rb"
each time when you want to roll up new recipes. Is there any way to do it with one command?Hi
i'm using ActiveAdmin in my application. Reached to the dashboard page but when i have run "rails g active_admin:resource product" command, after that server is not running. I'm using Rails 3.2, Ruby 1.9.2. Can somebody help me... Thanks
/home/ali/MySite/app/admin/products.rb:1:in ': uninitialized constant Product (NameError) from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inblock in load!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:187:in routes' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin.rb:78:inroutes' from /home/ali/MySite/config/routes.rb:2:in block in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:in eval_block' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:260:indraw' from /home/ali/MySite/config/routes.rb:1:in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inblock in load_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inload_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:16:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:108:inreload_routes!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:34:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:61:inblock in attach!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:429:in _run1902147173993390372prepare4025180163458367323callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in__run_callback' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in _run_prepare_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:inrun_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:74:in prepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:48:inprepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/finisher.rb:47:in block in module:Finisher' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:in run' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:55:inblock in run_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:inrun_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:136:in initialize!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /home/ali/MySite/config/environment.rb:5:in ' from /home/ali/MySite/config.ru:4:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:in instance_eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:ininitialize' from /home/ali/MySite/config.ru:1:in new' from /home/ali/MySite/config.ru:1:in' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:in eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:inparse_file' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:200:in app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:46:inapp' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:301:in wrapped_app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:252:instart' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in start' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:55:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in tap' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'
Chef has a deployment resource to deploy out of SVN or Git - it acts similar to what you're familiar with in Capistrano.
Because Chef's job is to control state of a node, it's actually an anti-pattern to use Capistrano for service control or deployments.
Radha,
There are actually a number of cookbooks which have open pull requests to add OSX support to them. It's quite easy to add support yourself and contributing back to the project!
Thanx for the local precompiling task.
Thanks! Spent hours on making precompiling work. I also had problems with errors in external js files like the ckeditor. Had to fork the git and correct the errors to complete the precompiling.
Awesome series on deployment for last few weeks. Really came handy for me. Thanks Ryan.
You are a godsend
Converting from
to
solved my problem.
Using the source code for this episode: store-after-less, I'm getting a Less::ParseError that 'reset.less' wasn't found. I've tried googling this issue and have not found a solution yet. I don't know if this is an issue with the less gem or with the twitter-bootstrap-rails gem.
Any idea on how to add a restriction to the number of user sessions with this approach? What I'd like to have is one browser window per user. Opening the app in another browser window would display a warning, signing in from another browser window would also display a warning+a choice to destroy the other session.
Has anyone implemented anything like this?
+1
Thanks for this episode.
I am actually trying to scrap a website full of ajax and mechanize does not really work fine in this case. I have found that some people are using watir or capybara to do so. Do you know any other simpler solutions?
I am trying to get highlighting working with the railscast code.
I have set text :content,:stored => true. And tried
@search = Article.search do
fulltext params[:search] {minimum_match 1} do
hightlight :content
end
I read that ngrams causes trouble, so I've tried with and without, but no success. I can't tell if trouble is in my setup for solrconfig, schema, articles model or controller. Stopping and restarting solr with each change is key since it reads schema and solrconfig only when it starts.
Anyone have a working version to share or figured out steps to make it work?
For some strange reason. It sends me to an redirect loop
http://0.0.0.0:3000/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/en/assets
Am using twitter bootstrap
Not sure what could be going wrong
Thanks Ryan!! Heroku and Engine Yard are great! But it is nice being able to test my applications live while keep cost in mind!
+1 I just found this out myself and came here to see if anyone mentioned it. It's too bad the RVM site doesn't have a wiki. It's closed nature is beginning to be a sore point for me, especially because it seems to have quite a few gaps since Lion. I almost switched to RBEnv over this.
You can set the branch. To deploy from a branch called
stage
, I would doset :branch, "stage"
Re jquery UI datepicker and bootstrap (complicated by the best_in_place and simpleform gems), what worked for me was to not use the jquery ui rails gem, create a custom minimal jqueryUI package using the smoothness theme, then sub in from the css from http://addyosmani.github.com/jquery-ui-bootstrap.
Result: jquery UI datepicker works great, matches bootstrap 2.0.3.
If you are not using either best_in_place or simpleform and therefore don't need Jquery UI, https://github.com/eternicode/bootstrap-datepicker is a better match to Bootstrap.
Unfortunately not!
you can use pry-remote: https://github.com/Mon-Ouie/pry-remote
Ok, I'm getting there but now the problem is that it requires a password for the deployer.
I'm getting the same problem. I was actually able to go around it temporarily by running webrick from the app directory ($ rails s) and then hit my server at port 3000 (example.com:3000).
The last answer on this page suggests that maybe routes are not being created and thus the 500 error.
http://stackoverflow.com/q/9059712/1130736
Unfortunately the link to the fix is broken, but I flagged it so hopefully it will get fixed.
p.s. is the unicorn.log file supposed to loop/scroll without stopping? Seems odd to me when I'm not hitting the app.
Chunky Bacon!
Screencast is awesome.
I'm running into an issue: the sortable order gets messed up if the users page does not match the database. This can happen if they are using an outdated view (didn't refresh page) or another user changed the order before they refreshed the page. Any idea how to resolve this? Perform a check somehow to see if the data matches the db before the sort, else redirect.?
I'm having trouble getting jquery UI datepicker working along with bootstrap. Has anyone else faced this?
hello, i think there is a little error in your tutorial,
src_files:
- public/javascripts/jquery.js
should be stored in /helpers and described in helper:
try the bootstrap-will_paginate gem. worked for me.
+1
Is there a way to completely get rid of active record and sqlite gem?
edit:
''' bash
rails new appli --skip-active-record
'''
Vagrant-Snap is an add-on for taking disk snapshots. Very fast and simple to use - much faster than rebuilding machines from scratch.
https://github.com/t9md/vagrant-snap
I'm still trying to wrap my head around these concepts. Of the lot,I think your gem looks much more approachable. Would it be in any way possible to run this against a local vagrant install?
Even large chef users (e.g. Engine Yard) tend to use chef-solo and their own services to replicate/push cookbooks.
Chef-Server adds a runtime dependency and needs it's own complex replication/failover strategy. If you rely on (a hosted) chef-server and it goes down, you can't reconfigure existing or launch new servers. A big no-go imho.
Sure, for a couple of unimportant VMs it's awesome to play and get a feeling with. But if your setup grows, you really don't want to have implicit configuration (like every 30mins with chef-client) and go with an explicit/push-style configuration.