Skip to content
#

ruby-on-rails

rails logo

Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.

Here are 5,026 public repositories matching this topic...

jeduardo824
jeduardo824 commented Jul 18, 2019

After facing an issue caused by Ransack interpreting 1/'t' as true and some unsuccessful research, I found about the sanitize args and the recommended way to skip them. The documentation never mentions that ransackable_scopes_sanitize_args must be a class method and the example shown defines an instance method.

I think that's worth a documentation update, making more clear how to use th

justin808
justin808 commented May 1, 2020

https://github.com/shakacode/react_on_rails/blob/master/docs/basics/recommended-project-structure.md

Instead, let's consider recommending leaving package.json and node_modules at the top-level...

There are no big advantages of having this be inside of the /client directory and there are a few additional bits of unnecessary complexity.

@ashgaliyev please add to this discussion.

reisner
reisner commented Apr 14, 2016

Hi there,

I have a codebase that uses establish_connection. I used Octopus in another (unrelated) part of my app. I did not notice that the parts of the code that used the connection from establish_connection were affected until I shipped to production. After looking through the codebase I realized that octopus_establish_connection actually says I do NOT want to use octopus for this connec

eliotsykes
eliotsykes commented Jan 4, 2018

This may surprise developers used to other templating engines used in Rails, but, at time of writing, Liquid does not behave like ERB/HAML templates in Rails where interpolated values are escaped by default.

Liquid does not escape interpolated values and does not have an option (at time of writing) to configure this to be the default. The developer needs to remember each and every time to es

ziaulrehman40
ziaulrehman40 commented Mar 28, 2019

I ran into a situation where there was a stupid mistake in one of our cron and we didn't notice it.

I believe we do parse crons already in app to queue jobs in time. So why not complain if some crons contain errors, i.e are not parse-able. I believe they are silently ignore as of now.

If i can get some guidance i will be happy to contribute this. We may add a configuration to raise exception

stimulus_reflex
jonathan-s
jonathan-s commented Apr 15, 2020

Docs

In the quickstart the first example explains how you can introduce stimulusreflex without any javascript. This seems somewhat magical, it would be nice if it was explained somewhere more clearly how the magic works behind the scenes or what assumptions are being made to make this work.

Referring to this https://docs.stimulusreflex.com/quickstart#call-reflex-methods-on-the-server-wit

jackrobson
jackrobson commented Dec 5, 2018

I had a lovely experience installing this via Docker. Kudos.

However, when I got to http://localhost:3000/ I only see a sign in button. I can't figure out how to sign up to the system.

I've tried http://localhost:3000/admins/sign_up but it redirects to /sign_in

Is their any other documentation that explains the sign up process?

Also, I'm very interested in using this to send mail in my

karlhe
karlhe commented May 25, 2017

When attempting to execute the compiled jar file when warbler packs in jruby-jars-9.1.9.0:

LoadError: no such file to load -- bundler/shared_helpers
  require at org/jruby/RubyKernel.java:961
  require at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:130
   <main> at uri:classloader:/META-INF/init.rb:21
  require at org/jruby/RubyKernel.java:9
dosco
dosco commented Jan 3, 2020

What would you like to be added:

Document what it would take to get Super Graph working with Yugabyte DB a distributed database that is designed to be compatible with Postgres. Super Graph makes use of a bunch of Postgres specific features like querying for database tables and columns, lateral joins, json functions et

ConfusedVorlon
ConfusedVorlon commented Jul 27, 2017

test this in the live example
type 1 in the student name field

expected:
student1 should show (if they exist)

actual:
exception and no records returned

by the time the query reaches search_terms(query), query is of Integer class and query.downcase triggers the error

I'm fixing this with

  	def self.search_terms(query)
  		#integer queries are sent through as integer class
kurtome
kurtome commented Jul 6, 2018

Clicking on a hint icon next to a checkbox field also toggles the checkbox. Since it's impossible to see the hint without changing the value of the checkbox, it makes the hint less useful :)

Maybe hints should display on hover?

(I may just use the helper_text instead, since that's lightweight and works for short hints)

nvisium-john-poulin
nvisium-john-poulin commented Feb 21, 2018

The test responds with a URL that is missing. We either need to create the page, or change this to link back to the old tutorial if nothing changed from a functional standpoint between R4/R5.

rspec ./spec/vulnerabilities/mass_assignment_spec.rb:12 # mass assignment attack one
rspec ./spec/vulnerabilities/mass_assignment_spec.rb:26 # mass assignment attack two, Tutorial: https://github.com

Created by David Heinemeier Hansson

Released December 13 2005

Organization
rails
Website
rubyonrails.org
Wikipedia
Wikipedia
You can’t perform that action at this time.