[Rails] Re: Problem serving image assets

2019-03-06 Thread Steve Alex
I just went through a similar problem with displaying an image in a PDF generated from the gem prawn. Worked find in development, but not production. prawn knows nothing about the asset pipeline or path helpers. I'm sure that the same is true with trying to get the path from java/coffee/script.

Fwd: [Rails] Combination for boolean value array

2019-02-23 Thread Steve Alex
I also had a little fund with this. Still not sure what the purpose of the method is but I’m assuming getting the State of an array of booleans. Maybe even, well I don’t know. When I get stuck with what should be a simple combinations of boolean, I go back to ancient methods and draw a picture!

[Rails] Safari 12.0.1 will break most applications that has a 'Confirm' JS alert

2018-11-30 Thread Steve Alex
I upgraded my MacBookAir to Mojave several weeks ago which includes Safari 12.0.1. I've also had been upgrading several internal rails applications to Rails 5.1.6 and new version of RailsFoundation with xy-grid. I then started having problems with those applications. Mainly a CRUD delete link w

[Rails] Re: Rollback error message

2010-11-08 Thread Steve Alex
pepe wrote in post #960118: > > I am guessing that you are planning on using later on the message that > you are raising. Why not just add the error to your memo object errors > and then check in your controller if your memo.errors is empty or not? > > pepe Thanks for both suggestion. Again, first

[Rails] Rollback error message

2010-11-07 Thread Steve Alex
I trying transactions for the first time and trying to figure out the best (DRY?) way to get the error message outside the transaction block. If in a controller if I have def create Memo.transaction do @memo = Memo.new(params[:memo]) # polymorphic build @resource = @memo.memoble # get pa