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
| .row | |
| .col-sm-4 | |
| = f.label :category_id | |
| = f.select :category_id, Category.all.collect { |o| [ o.title, o.id ] }, { selected: @category.id } | |
| %button.btn.btn-secondary{"data-target" => "#createcategory", "data-toggle" => "modal", :type => "button"} | |
| Create Category | |
| .col-sm-4 | |
| = f.label :submenu_id | |
| = f.select :submenu_id, @category.submenus.collect { |o| [ o.title, o.id ] } | |
| %button.btn.btn-secondary{"data-target" => "#createsubmenu", "data-toggle" => "modal", :type => "button"} |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>GET</AllowedMethod> | |
| <AllowedMethod>POST</AllowedMethod> | |
| <AllowedMethod>PUT</AllowedMethod> | |
| <AllowedMethod>DELETE</AllowedMethod> | |
| <MaxAgeSeconds>3000</MaxAgeSeconds> | |
| <AllowedHeader>Authorization</AllowedHeader> |
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
| .row.mb64 | |
| .col-sm-6 | |
| = graphic_present(@post, "small") | |
| .col-sm-6 | |
| #graphic_upload | |
| #ProgressBar | |
| = f.fields_for :image_attributes do |ff| | |
| = ff.label :alt_text, "Alt Text" | |
| = ff.text_field :alt_text, value: alt_text(@post) | |
| = ff.hidden_field :graphic, class: "upload-hidden" |
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
| = f.fields_for :documents_attributes do |ff| | |
| = ff.hidden_field :graphic, class: "upload-hidden" | |
| Processing by Admin::LessonsController#create as HTML | |
| Parameters: {"utf8"=>"✓", "authenticity_token"=>"I3NfaupPeavweIfWD3bxxXpev3+46prtirGNxx88Fs/FGWBXuVO8GFu4qpFYxJFVugxhEIpFpd9amPbOgYIffg==", "lesson"=>{"title"=>"lesson 1", "video_link"=>"lesson 1", "documents_attributes"=>{"graphic"=>""}, "description"=>""}, "uploading_image"=>"", "commit"=>"Create Lesson", "course_id"=>"foobar"} | |
| Membership Load (0.3ms) SELECT "memberships".* FROM "memberships" WHERE "memberships"."id" = $1 LIMIT $2 [["id", 51], ["LIMIT", 1]] | |
| Course Load (0.3ms) SELECT "courses".* FROM "courses" WHERE "courses"."slug" = $1 LIMIT $2 [["slug", "foobar"], ["LIMIT", 1]] | |
| Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms) | |
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
| [4] pry(#<MembershipsController>)> current_user | |
| => #<Membership:0x00007fb2cc3fd3c0 | |
| id: 51, | |
| email: "gus@staycreativedesign.com", | |
| password_digest: "$2a$10$4uo6jU3eEpB7VOTfOEvNe.XiUEsvZirxjehxQA58lfys4ZDt/Wk1K", | |
| role: "admin", | |
| name: "Gustavo Pares", | |
| created_at: Sun, 04 Nov 2018 18:56:36 UTC +00:00, | |
| updated_at: Sun, 04 Nov 2018 18:59:45 UTC +00:00, | |
| slug: "gustavo-pares"> |
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
| Uncaught TypeError: Cannot read property 'billing_name' of undefined | |
| at TokenCallback.token [as fn] (new:197) | |
| at TokenCallback.trigger (checkout.js:3) | |
| at TokenCallback.trigger (checkout.js:3) | |
| at IframeView.onToken (checkout.js:3) | |
| at IframeView.closed (checkout.js:3) | |
| at Object.closed (checkout.js:3) | |
| at RPC.processMessage (checkout.js:2) | |
| at RPC.processMessage (checkout.js:2) | |
| at RPC.message (checkout.js:2) |
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
| customer = Stripe::Customer.create({ | |
| email: params[:email], | |
| source: params[:stripeToken] | |
| }) |
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
| %script{:src => "https://checkout.stripe.com/checkout.js"} | |
| :javascript | |
| var handler = StripeCheckout.configure({ | |
| key: '#{Rails.configuration.stripe[:publishable_key]}', | |
| locale: 'auto', | |
| name: 'foobar', | |
| billingAddress: true, | |
| description: 'Donation', | |
| token: function(token, address_data) { | |
| $('input#stripeToken').val(token.id); |
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
| %script{:src => "https://checkout.stripe.com/checkout.js"} | |
| :javascript | |
| var handler = StripeCheckout.configure({ | |
| key: '#{Rails.configuration.stripe[:publishable_key]}', | |
| locale: 'auto', | |
| name: 'foobar', | |
| billingAddress: true, | |
| description: 'Donation', | |
| token: function(token) { | |
| $('input#email').val(token.email); |
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
| <!DOCTYPE html> | |
| <html lang='en'> | |
| <head> | |
| <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'> | |
| <title>My website</title> | |
| <link rel="stylesheet" media="all" href="/assets/application.self-df2ac4a8f73f9db3160ed7dfcc020fd1749b93e53981309663bf2f82995735d7.css?body=1" /> | |
| <script src="/assets/jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1"></script> | |
| <script src="/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1"></script> | |
| <script src="/assets/bootstrap.min.self-075878ec6a19d24f3b46052eb9e0e5bb5c2a098ac50d05d8e3a21309d129273a.js?body=1"></script> | |
| <script src="/assets/jquery.slicknav.self-2c66dcc5003ba9cfe9b7697fe1fca1b38033ecbe712a8d4f21300624567036e7.js?body=1"></script> |