search for: sample_app

Displaying 20 results from an estimated 26 matches for "sample_app".

2007 Mar 02
1
example standalone error.
Hello, Trying to get the example to work in standalone mode. I have the following in a file and am not certain why I get this undefined method error: error: ~/ruby sample_app.rb my sample app :) sample_app.rb:9: undefined method `new_worker'' for BackgrounDRb::MiddleMan:Class (NoMethodError) ### code follows ### # sample_app ... try to get stand-alone happiness. #require ''release-0.2.1/lib/backgroundrb'' #MiddleManDRbObject.init(:uri =>'...
2012 May 09
5
Unicorn doesn't play nice with Capistrano deployment?
...e to understand Capistrano uses a scheme in wich every release is deployed inside the releases directory under a unique name and if the transaction was successful, creates a symlink named current that will point to that release. So I end up with a deployment directory such as: /home/deployer/apps/sample_app/current Then when I try to start unicorn from the binstubs directory all the unicorn methods look for things in the following path, particularly in the configurator.rb module: /home/deployer/apps/sample_app I haven''t been able to fully understand how unicorn sets the working_directory f...
2010 Oct 20
3
rspec error's when checking LayoutLinks from the railstutorials
...home'' 1. I already googled and found http://stackoverflow.com/questions/3517724/rspec-is-giving-an-error-with-my-layout-links-from-the-rails-tutorial-failure-e 2. I already tried changing the rspec version to 2.0.0.beta.18, but I still get the same error. Here is the output: dpalacio:sample_app dpalacio$ rspec -v 2.0.1 dpalacio:sample_app dpalacio$ rspec spec/requests/ FFFFF Finished in 0.55501 seconds 5 examples, 5 failures 1) LayoutLinks should have a Home page at ''/'' Failure/Error: Unable to find matching line from backtrace stack level too deep # /Users...
2011 Jun 09
0
failing integration test
...#39;'users'', :action => ''new'' end When I do a "spec spec/" I get 5 tests failed: 1) NoMethodError in ''Layout links should have a Home page at ''/'''' undefined method `match'' for []:Array /home/di/rails_projects/sample_app/spec/integration/layout_links_spec.rb:5: 2) NoMethodError in ''Layout links should have a Contact page at ''/contact'''' undefined method `match'' for []:Array /home/di/rails_projects/sample_app/spec/integration/layout_links_spec.rb:10: 3) NoMethodError in...
2010 Sep 03
1
Action Controller Error: undefined local variable or method `current_user'
...ilstutorial.org/chapters/sign-in-sign-out#top At the end of the tutorial, rails is erroring (see below). being new to Rails and after having checked the tutorial... How do you resolve this kind of error. It''s saying current_user is not defined, and it is supposed to be defined with/Sites/sample_app/app/helpers/ sessions_helper.rb NameError in Pages#home Showing /Users/iamme/Sites/sample_app/app/views/layouts/ _header.html.erb where line #6 raised: undefined local variable or method `current_user'' for #<#<Class: 0x103371258>:0x10336be70> Extracted source (around line #...
2006 Dec 03
1
File Upload Unix Only?
I tried the upload feature in merb 0.0.7 using http://localhost:4000/files I get the following: Permission denied - D:/Temp/Merb.5172.0 or E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/public/files/foobar.jpg - (Errno::EACCES) C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `rename'' C:/Ruby/lib/ruby/1.8/fileutils.rb:501:in `mv'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1379:in `fu_each_src_dest'' C:/Ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest0'...
2012 Nov 06
2
rspec failure upon revisit
...ept I did overwrite users_controller.rb and users_controller_spec.rb when starting another chapter of the tutorial. I''m not sure what changed. I''m having trouble diagnosing the error: Pending: UsersHelper add some examples to (or delete) /Users/andrewchickedantz/rails_projects/sample_app/spec/helpers/users_helper_spec.rb # No reason given # ./spec/helpers/users_helper_spec.rb:14 User add some examples to (or delete) /Users/andrewchickedantz/rails_projects/sample_app/spec/models/user_spec.rb # No reason given # ./spec/models/user_spec.rb:4 users/new.html.erb add...
2011 Aug 04
1
GitHub - How to resolve this issue of preventing push to origin?
...**EDIT:** Output of running `git remote -v`: $ git remote -v heroku git-Vgi1d2+GxVTQT0dZR+AlfA@public.gmane.org:young-rain-273.git (fetch) heroku git-Vgi1d2+GxVTQT0dZR+AlfA@public.gmane.org:young-rain-273.git (push) origin git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:SWEngineer7sample_app.git (fetch) origin git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:SWEngineer7sample_app.git (push) sample git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:SWEngineer/sample_app.git (fetch) sample git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:SWEngineer/sample_app.git (push) How can I solve th...
2006 Dec 03
2
How To Create Database Tables With Merb 0.0.7?
Howdy, I just gem unpacked merb and have configured the sample_app to use an sqlite3 database. I see that the Rakefile has a task named "schema", but it points to /dist/schema/schema1.rb", which doesn''t exist. I copied /dist/schema/schema1.rb to /dist/schema/schema.rb then ran "rake schema". What''s the recommended way to...
2013 Mar 14
7
No Migration Files are created
...t;Block in cunstantize: uninitialized constant cacher 8NameError) And no migrationfiles are created in the db folder. I tested the "rails g controller"-command which works fine. Also creating new models /migrations in other projects do work. But creating migrations in this specific "sample_app" is no longer possible and I just don''t know why. I couldn''t find anything about this problem on the web either. I hope you guys are familiar with this problem and can help me out :/ Greetz Sir Jay -- Posted via http://www.ruby-forum.com/. -- You received this message be...
2006 Dec 07
3
What does js partial(...) do?
In the example application named "sample_app", comment.jerb contains the following line: $(''comments'').update(<%=js partial(:comments) %>); What does the ''js'' method do to/with, if anything at all, ''partial(:comments)''? Merb is quite fun to use and I''m starting to ge...
2011 Oct 02
5
tutorial: gravatar_image_tag problem
Hi all, Still working through the Hartl tutorials. Making progress but am hitting (another) wall. The repository is on github at: git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:aamax/sample_app.git if you want to see the code. I''ve pretty much followed the tutorial exactly except I am using rails 3.1.0 rather than 3.0.1 and some of the other gem versions are different. I posted a gist entry at https://gist.github.com/1257103 Hopefully I posted enough info to get the id...
2011 Jul 25
5
Arel quiz: complex queries with associations
...sociated with both people and tweets. Also, people have followers and may be followed by other people (stored in the same table, of course). I posted the app on github with some seed data if anyone wants to try it in the console: git clone git://github.com/ultrasaurus/twitter_like_example_app.git sample_app cd sample_app bundle install rake db:migrate rake db:seed rails c I can create simple queries like this: list all people''s names alphabetically > Person.order(:name).all.map(&:name) how many people speak french? > Person.joins(:language).where(:languages => {:code => ...
2007 Mar 02
0
example standalone error ... but if i ...
If I add .instance in front of new_worker I get the following error ... but for some reason i cant call new_worker directly...? error: ruby sample_app.rb my sample app :) ./backgroundrb/middleman.rb:440:in `ex'': undefined method `synchronize'' for nil:NilClass (NoMethodError) from ./backgroundrb/middleman.rb:401:in `[]'' from ./backgroundrb/middleman.rb:461:in `gen_key'' from ./backgroundrb...
2006 Dec 18
1
Upload Progress (mup.js) typo
I was using the sample_app and found out that the progress bar wasn''t changing color. It was updating the percentage but wasn''t updating the width of the status bar style... I found that the mup.js was missing and appended "px" So here it is: my first ever Merb patch! http://pastie.caboo.se/284...
2010 Nov 19
1
I18n::InvalidLocaleData error on load page
...> <%= f.password_field :password_confirmation %> </div> <div class="actions"> <%= f.submit "Sign up" %> </div> <% end %>\ recieve this message: I18n::InvalidLocaleData in Users#new can not load translations from /cluter/RoR/sample_app/config/locales/routes.rb, expected it to return a hash, but does not Showing /cluter/RoR/sample_app/app/views/users/new.html.erb where line #5 raised: Extracted source (around line #5): 2: 3: <%= form_for(@user) do |f| %> 4: <div class="field"> 5: <%= f.label :name %>...
2006 Dec 04
2
Merb on Win32 Platform
...>"new", "id"=>nil, "controller"=>"posts"} Routing to controller: Posts action: new Parsing HTTP Input took: 0.016 seconds undefined local variable or method `session'' for #<Posts:0x2da56a4> - (NameError) E:/Dev/Ruby/merb-0.0.7/examples/sample_app/dist/app/controllers/posts.rb:5:in `new'' After a bit of grepping I see that merb.yml has commented out ":session: true". So I uncomment that line and restart merb. This leads to the following error on the console: C:/Ruby/lib/ruby/gems/1.8/gems/merb-0.0.7/bin/merb:139:in `fork...
2011 Oct 24
9
ActiveRecord::ConnectionNotEstablished
...ller Pages home contact" and everything worked fine. Then the book directs me to http://localhost:3000/pages/home. When I point my browser there, I receive the following error. ActiveRecord::ConnectionNotEstablished ActiveRecord::ConnectionNotEstablished Rails.root: /home/ralph/railsprojects/sample_app Application Trace | Framework Trace | Full Trace The routes and controller erb don''t appear to have any errors. Is this a database related error? Any ideas? Thanks, DMAT -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro...
2012 Feb 03
10
ruby on rails 3 tutorial book chapter9 Signin Failure
Hi I have problem trying to pass the signin failure test. This is the test code of the sessions_controller.rb def create user = User.authenticate(params[:session][:email], params[:session][:password]) if user.nil? flash.now[:error] = "Invalid email/password combination." @title = "Sign in" render
2006 Nov 28
34
Uploading Large (100mb+) files
I have an Apache 2.2.3 (mod_proxy_balancer) frontend server that does not have mongrel installed. It does proxy requests to several other mongrel-only servers (each running 2 mongrel processes). Each mongrel node has the same rails code-base and it''s working perfectly. However, my question is when I add an upload file form... where is it going to physically put that file? I mean since