You can create a file ‘~/xploralab.txt’ and open it in file operation ‘a+’ mode. Then keep…
[code language=”ruby”] hash.all? { |k, v| v.present? } [/code]
[code language=”ruby”] validates_format_of :image, :with => %r{.(png|jpg|jpeg)$}i, :message => "Please use image " [/code]
Using text magic Add gem to your Gemfile [code language=”ruby”] gem ‘textmagic’ [/code] [code language=”ruby”] class…
[code language=”ruby”]Article.joins(:comments).group("articles.id").order("max(comments.created_at) DESC")[/code]
[et_pb_section fb_built=”1″ admin_label=”Header Section” _builder_version=”3.18.2″ _dynamic_attributes=”background_image” use_background_color_gradient=”on” background_color_gradient_start=”rgba(26,10,56,0)” background_color_gradient_end=”#1a0a38″ background_color_gradient_overlays_image=”on” background_image=”{%22dynamic%22:true,%22content%22:%22post_featured_image%22,%22settings%22:{}}” custom_padding=”28vw|0px|0|0px|false|false” background_color_gradient_start__hover=”#2b87da” background_color_gradient_start__hover_enabled=”#2b87da” background_color_gradient_end__hover=”#29c4a9″ background_color_gradient_end__hover_enabled=”#29c4a9″…
[et_pb_section admin_label=”section”] [et_pb_row admin_label=”row”] [et_pb_column type=”4_4″][et_pb_text admin_label=”Text”][code language=”bash”] upstream mysite_app { server unix:///home/ubuntu/mysite/shared/sockets/puma.sock; } server {…
[language=”bash”] server { listen 80; server_name uat.site.com; location /{ root /home/ubuntu/path/site/public; index index.html try_files $uri/index.html $uri;…
Recent Comments