Unit tests in Ruby on Rails
How to write and run your first unit test for your ruby on rails webapp Fist time setup $ rake db:test:load This will recreate a new test DB based ont the current schema! Tasks...
Just another Yipp.ca Blogs site
How to write and run your first unit test for your ruby on rails webapp Fist time setup $ rake db:test:load This will recreate a new test DB based ont the current schema! Tasks...
Error: param is missing or the value is empty: home_address_attributes Before (wrong) private def user_params Rails.logger.info("PARAMS: #{params.inspect}") params.require(:user).permit(:fullname, :login, :password, :password_confirmation, :phone_home, :phone_work, :phone_cell, :deliveryNote, :home_address_attributes).require(:home_address_attributes) end After (good) private def user_params Rails.logger.info("PARAMS: #{params.inspect}")...
Solution 1: Just add :patch in the route methods Solution 2: Just use resources :myobject
With Ruby on Rails 4 root@bronze:~# nslookup community-buy.ca Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: community-buy.ca Address: 107.6.27.108 openssl s_client -connect 107.6.27.108:443 | openssl x509 -text -noout Will give you useful information
OpenSSL::SSL::SSLError (hostname "localhost" does not match the server certificate): app/controllers/users_controller.rb:94:in `create' Solution
1735 INFO (main) [ ] o.a.s.c.SolrXmlConfig Loading container configuration from /home/cbuy/public_html/solr/solr.xml 1830 ERROR (main) [ ] o.a.s.s.SolrDispatchFilter Could not start Solr. Check solr/home property and the logs 1861 ERROR (main) [ ] o.a.s.c.SolrCore null:org.apache.solr.common.SolrException:...
* authlogic (3.5.0) Solution Downgrade from 3.5.0 to 3.4.5 ! Modify Gemfile with gem 'authlogic', '~> 3.4.5' And run again: $> bundle install (...) Using scrypt 2.1.1 (was 3.0.3) Using authlogic 3.4.6 (was...
If you have 512 MB of SWAP or below you need to increase the SWAP $> sudo dd if=/dev/zero of=/swap bs=1M count=1024 $> sudo mkswap /swap $> sudo swapon /swap To make permanent, add...
Install Ruby 2.1 # as root apt-get update apt-get install build-essential bison openssl libreadline6 libreadline6-dev \ libyaml-dev libxml2-dev libxslt-dev zlib1g zlib1g-dev libssl-dev autoconf \ libc6-dev ncurses-dev libaprutil1-dev libffi-dev libcurl4-openssl-dev libapr1-dev cd ~ wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.9.tar.gz...
Old Forms were like this, but now they don't render! <% form_for @seller, :url => "/seller/create" do |f| %> New <%= form_for @seller, :url => "/seller/create" do |f| %> Old Partial render are also...
Recent Comments