This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>NO FUCKING MESSAGE</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% flash.each do |name, message| %> | |
<%= content_tag :div, message, :id => "flash_#{name}" %> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @customer do |c| %> | |
<% if @customer.errors.any? %> | |
<div class="form_errors"> | |
<ul> | |
<% @customer.errors.full_messages.each do |msg| %> | |
<li> | |
<%= msg %> | |
</li> | |
<%end%> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CHECKING ERROR VALIDATION CHANGEPASSWORD | |
{"utf8"=>"✓", "_method"=>"put", "authenticity_token"=>"LiCv6shHTr8gXVk/fNPmhGk2pJ2uUM2WmQ0mm0OWeLs=", "customer"=>{"authentication_attributes"=>{"password"=>"qdsfqsdf", "password_confirmation"=>"dfqsd", "id"=>"2"}}, "commit"=>"Save your changes", "action"=>"update", "controller"=>"customers", "id"=>"2110002"} | |
-> Customer | |
- authentication_attributes | |
-password | |
-password_confirmation | |
Gives following errors: | |
Password doesn't match confirmation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "customers" do | |
describe "signup" do | |
#FactoryGirl.find_definitions | |
let(:user) { FactoryGirl.create(:signup_customer)} | |
it "has right data" do | |
visit signup_path | |
fill_in :id, :with => 2110001 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @customer do |c|%> | |
<% if @customer.errors.any?%> | |
<div id="form_errors"> | |
<ul> | |
<% @customer.errors.full_messages.each do |msg| %> | |
<li> | |
<%= msg %> | |
</li> | |
<%end%> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index of / | |
[ICO] Name Last modified Size Description | |
[TXT] LICENSE.txt 10-Nov-2012 16:20 1.5K | |
[ ] composer.json 10-Nov-2012 16:20 336 | |
[ ] composer.lock 20-Nov-2012 13:42 5.0K | |
[ ] composer.phar 10-Nov-2012 16:20 557K | |
[DIR] config/ 20-Nov-2012 13:13 - | |
[DIR] data/ 20-Nov-2012 13:13 - | |
[TXT] dxDNrd_U.htm.part.htm 20-Nov-2012 13:51 849 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
selectionChanges(); | |
}); | |
function selectionChanges(){ | |
$('#filters select').change(function(){ | |
//Do some stuff and do an ajax request | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Routing Error | |
No route matches {:controller=>"orderitems"} | |
Try running rake routes for more information on available routes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in OrderitemsController#create | |
undefined method `stringify_keys' for #<Order:0x2c630a0> | |
Application Trace | Framework Trace | Full Trace | |
app/controllers/orderitems_controller.rb:11:in `create' | |
OlderNewer