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_with url: kyc_document_upload_path, multipart: true do |f| %> | |
<% kyc_missing.each do |item| %> | |
<tr> | |
<td><%= item %></td> | |
<td> | |
<%= f.fields_for :files, index: nil do |ff| %> | |
<%= ff.hidden_field :document_name, value: item %> | |
<%= ff.file_field :file %> | |
<% end %> | |
</td> |
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
# views/payments/index.html.erb | |
<%= turbo_frame_tag 'payments' do %> | |
<%== pagy_items_selector_js(@pagy)%> | |
<% 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
class BetterAdvisor | |
def clothes | |
if weather_service.precipitation > 40 | |
:raincoat | |
elsif weather_service.temperature > 20 | |
:t_shirt | |
else | |
:jacket | |
end | |
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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's | |
* vendor/assets/stylesheets directory can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the bottom of the | |
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS | |
* files in this directory. Styles in this file should be added after the last require_* statement. |
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
$.ajax({ | |
method: "GET", | |
url: "/tasks/search", | |
data: { query: query } | |
}) | |
.done(function( suggestions ) { | |
var $suggestions = $('#suggestions') | |
var $suggestions_table = $suggestions.find('table tbody') | |
$suggestions_table.empty() |
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
class NoPost | |
def title | |
"No posts yet" | |
end | |
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
<h2 align="center">Sign up</h2> | |
<div class="container"> | |
<div class="col-sm-4"> | |
<b>Personal data</b><hr> | |
</div> | |
<% if @registration.errors.any? %> | |
<h1>ERRORS</h1> | |
<% @registration.errors.full_messages.each do |message| %> | |
<ul><% message %></ul> | |
<% 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
class StockRemoveWorker | |
include Sidekiq::Worker | |
sidekiq_options retry: false | |
def perform | |
Stock.destroy_all | |
end | |
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 @article do |f| %> | |
<div class='form-group'> | |
<%= f.label :title %> | |
<%= f.text_field :title, class: 'form-control' %> | |
</div> | |
<div class='form-group'> | |
<%= f.label :image %> | |
<%= f.file_field :image, class: 'form-control' %> | |
</div> | |
<div class='form-group'> |
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
# frozen_string_literal: true | |
class User::RegistrationsController < Devise::RegistrationsController | |
before_action :configure_permitted_parameters | |
protected | |
def configure_permitted_parameters | |
devise_parameter_sanitizer.permit(:sign_up, keys: %i[first_name last_name]) | |
devise_parameter_sanitizer.permit(:account_update, keys: %i[first_name last_name]) |
NewerOlder