Re: [Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-26 Thread Nicholas Schwaderer
ffron > *Sent: *Wednesday, March 25, 2020 21:56 > *To: *Ruby on Rails: Talk > *Subject: *[Rails] We are moving to https://discuss.rubyonrails.org/ > > > > Hi There, > > > > The Rails team has decided to migrate all the talk, docs and core Google > groups to https

RE: [Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread Blake LeBlanc
Thank you for the heads-up Sam! -Blake From: samsaffron Sent: Wednesday, March 25, 2020 21:56 To: Ruby on Rails: Talk Subject: [Rails] We are moving to https://discuss.rubyonrails.org/ Hi There, The Rails team has decided to migrate all the talk, docs and core Google groups to  https

Re: [Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread Sam Saffron
-- > You received this message because you are subscribed to a topic in the Google > Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/QzmdDH_STlk/unsubscribe. > To unsubscribe from this group a

[Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread San Ji
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web vi

[Rails] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread samsaffron
Hi There, The Rails team has decided to migrate all the talk, docs and core Google groups to https://discuss.rubyonrails.org/. Starting from can you post any talk discussion there. If you are having any trouble finding your bearings I will be watching closely and do my best to help out

[Rails] handling errors when separating controllers

2020-03-24 Thread tonypm
something). Tonypm -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion

Re: [Rails] Action Controller: Exception caught.

2020-03-23 Thread SM Ehsan
of it below. > > Thanks. > > > > > > > > > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, s

[Rails] config.logger level is overwritten

2020-03-23 Thread Morteza Milani
Hello all, I have a comment about rails logger and I wish to change its behaviour. Rails tries to load the logger from config like this: Rails.logger ||= config.logger || begin logger = ActiveSupport::Logger.new(config.default_log_file) end https://github.com/rails/rails/blob

Re: [Rails] Action Controller: Exception caught.

2020-03-23 Thread Walter Lee Davis
to fix it? I have attached a screenshot of it below. > Thanks. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from

[Rails] Too many nested associations?

2020-03-22 Thread fugee ohu
ate_by(... in a controller regardless of the associations Should I use nested forms all the way to create press_releases or the direct Model.create method -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this

Re: [Rails] finding function defenition

2020-03-21 Thread Ariel Juodziukynas
/gems/actionpack-6.0.2.2/lib/action_dispatch/routing/mapper.rb, 711 Than you can check the source on github https://github.com/rails/rails/blob/v6.0.2.2/actionpack/lib/action_dispatch/routing/mapper.rb#L711 It doesn't always work, you can have methods generated on the fly using define_method for e

Re: [Rails] finding function defenition

2020-03-21 Thread Ilya Makedon
d this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To view this discussion on the web visit > h

[Rails] finding function defenition

2020-03-21 Thread San Ji
interface of an IDE. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the

[Rails] finding function defenition

2020-03-21 Thread Ilya Makedon
How does one figure out where a definition of a function is given its call in Ruby on Rails code? For example, let's suppose, I didn't know what config/routes.rb is for. And I was looking at it and wanted to know what the function get does. It's not defined in routes.rb itself

Re: [Rails] On polymorphic associations with has_many through, is it possible to pull in multiple source types with one query?

2020-03-20 Thread Blake LeBlanc
ate one query method that >> pulls in all associated records regardless of what source_type they might >> belong to. >> >> Just thinking out loud, would that likely involve creating some sort of >> raw SQL join that acts directly on the ImageTags table? Or is ther

Re: [Rails] webrtc - anyone done multi video ?

2020-03-20 Thread tom
:00 PM, tom wrote: > > > > > > hi, > > > > > > i have just finished a webrtc chat via action cable, but before > spending even more time on it trying to get video on as well, i was > wondering if anyone can share any 'tips' or guides. > > &

Re: [Rails] webrtc - anyone done multi video ?

2020-03-20 Thread Walter Lee Davis
t; thank you all in advance > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > em

Re: [Rails] webrtc - anyone done multi video ?

2020-03-19 Thread tom
nished a webrtc chat via action cable, but before spending > even more time on it trying to get video on as well, i was wondering if > anyone can share any 'tips' or guides. > > > > thank you all in advance > > > > > > -- > > You received this

Re: [Rails] On polymorphic associations with has_many through, is it possible to pull in multiple source types with one query?

2020-03-19 Thread Ariel Juodziukynas
gt; raw SQL join that acts directly on the ImageTags table? Or is there a more > Railsy/ActiveRecordy way of approaching it? > > Thank you in advance for any help or insights! > -Blake > > -- > You received this message because you are subscribed to the Google Groups > "Ruby

Re: [Rails] webrtc - anyone done multi video ?

2020-03-19 Thread Walter Lee Davis
nyone can > share any 'tips' or guides. > > thank you all in advance > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiv

[Rails] webrtc - anyone done multi video ?

2020-03-19 Thread tom
gle Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMdTHiBGBC86ztTr79JnV_qEd

[Rails] On polymorphic associations with has_many through, is it possible to pull in multiple source types with one query?

2020-03-19 Thread Blake LeBlanc
it? Thank you in advance for any help or insights! -Blake -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googleg

[Rails] post request to unassociated model

2020-03-17 Thread fugee ohu
How do I make a post request to an unassociated model from the view of another model -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyon

[Rails] How do I implement MailCatcher under the docker-compose way?

2020-03-16 Thread Jason Hsu
The app in question is at https://github.com/jhsu802701/railn-20200316-215223-398 . Note that config/environments/development.rb is configured for MailCatcher. I've been able to use MailCatcher without docker-compose, but I can't quite figure out how to get it to work in a Rail

[Rails] [job] Ruby developer for United Nations associated project

2020-03-15 Thread David Hughes
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web vi

[Rails] Re: Is it worth switching to Postgresql?

2020-03-15 Thread David Gleba
nt to address the other > issue you have. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroup

Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-15 Thread Lahiru Himesh Madusanka
You may want to check the Rails+Ruby version of your host then. It's possible that you're using a newer version of Ruby and your codebase requires an older version. (Due to the deprecated warning) Best regards Lahiru Himesh Madusanka http://lk.linkedin.com/in/sdglhm http://

Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Philip Rhoades
Hassan, On 2020-03-15 11:31, Hassan Schroeder wrote: On Sat, Mar 14, 2020 at 3:52 PM Philip Rhoades wrote: Docker crashed and I lost the Rails container so I have to go back to the original source. I don't know what "lost the Rails container" means. Can't you just

Re: [Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Hassan Schroeder
On Sat, Mar 14, 2020 at 3:52 PM Philip Rhoades wrote: > Docker crashed and I lost the Rails container so I have to go back to > the original source. I don't know what "lost the Rails container" means. Can't you just rerun the Dockerfile? > Could someone suggest how

[Rails] Old Rails app from Docker Container - trying to run natively again . .

2020-03-14 Thread Philip Rhoades
People, Docker crashed and I lost the Rails container so I have to go back to the original source. Could someone suggest how I could fix the problem seen below? - I deleted the Gemfile.lock file first. Thanks, Phil. $ bundle install --path vendor/bundle . . Bundle complete! 15 Gemfile

[Rails] Is it worth switching to Postgresql?

2020-03-14 Thread San Ji
- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://

Re: [Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Ariel Juodziukynas
; On Mar 14, 2020, at 12:17 PM, Rob Jonson > wrote: > > > > thanks folks, > > > > I guess I'm asking more about the practical pain points. - As you say, I > trust rails to deal with most of the day-to-day. > > > > do you end up battling to get your postgr

Re: [Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Walter Lee Davis
> On Mar 14, 2020, at 12:17 PM, Rob Jonson wrote: > > thanks folks, > > I guess I'm asking more about the practical pain points. - As you say, I > trust rails to deal with most of the day-to-day. > > do you end up battling to get your postgres install worki

Re: [Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Rob Jonson
thanks folks, I guess I'm asking more about the practical pain points. - As you say, I trust rails to deal with most of the day-to-day. do you end up battling to get your postgres install working after upgrading mac (or postgres?) do you have problems with string encoding incompatibiliti

Re: [Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Phil Edelbrock
I think Ariel's reply is spot-on. Rails is basically DB agnostic, however I think the trend is that PostgreSQL is the more favored backend (except for stuff like Wordpress). We're doing a lot more SQL procedural stuff these days with our rails apps (e.g. kicking out JSON from a si

Re: [Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Ariel Juodziukynas
MySQL, at least to be proficient. I even have a project that I used sqlite to prototype and postresql when deploying it to heroku for tests and I had to do nothing to make it work on both databases thanks to AR. Also, heroku prefers postrgres for example and heroku is really popular for rails ho

[Rails] Is it worth switching to Postgresql?

2020-03-14 Thread Rob Jonson
postgresql these days, I'm wondering if anyone can comment on whether it's worth putting in the effort to learn a new db? all the best Rob -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this grou

Re: [Rails] Suggestions on how I should handle licensing in a session

2020-03-13 Thread Walter Lee Davis
d this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To view this discussion on the web visit

[Rails] Suggestions on how I should handle licensing in a session

2020-03-13 Thread John Sanderbeck
this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.c

Re: [Rails] Rails session

2020-03-12 Thread Ariel Juodziukynas
I guess you have to use a before block to cache the initial value and then compare that to the final value in the after block El jue., 12 mar. 2020 a las 4:08, Jaleel Ahmed () escribió: > I was wondering if it is possible to know if the rails session has been > modified? > > I am hav

[Rails] Rails session

2020-03-12 Thread Jaleel Ahmed
I was wondering if it is possible to know if the rails session has been modified? I am having a around filter, I make changes to the session object I then yield to the action being performed, the action might not might not change the session object. In the after block I want to figure out if

[Rails] help me correct this wrongly syntaxed form_with block

2020-03-11 Thread fugee ohu
x27; }) do |f| %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussi

Re: [Rails] add user_id to new record

2020-03-10 Thread fugee ohu
new record without placing it in a form as a > hidden field? I tried adding in the controller's create action just before > `if @post.save?` but that didn't cause new records created to have a value > for user_id Maybe it was because I'm using a nested form and this record is

[Rails] form_with non-associated model on another model's view

2020-03-09 Thread fugee ohu
%= form_with model: @press_release, create_user_tour_press_release_path(tour.id: @tour.id, artist_id: @artist.id, poster_type: 'User') do |f| %> but that had the problem of no prepended press_release to the params -- You received this message because you are subscribed to the Google Groups "Ruby o

[Rails] form_with from different model

2020-03-03 Thread fugee ohu
<%= form_with model: @press_release, url: create_user_tour_press_release_path(artist_id: @artist.id, tour_id: @tour.id, poster_id: current_user.id, poster_type: 'User') do |f| %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q

[Rails] [JOBS] Ruby Developer Boston, MA

2020-03-02 Thread Vinay Tikku
Hi All, Our Client a well known Publishing House is looking for an experienced Senior Software Engineer with strong Ruby on Rails. Also, you will manage some of our external resources (contractors and vendors). *Client: Education/Publishing DomainLocation: Boston, MAInterview Process

Re: [Rails] add user_id to new record

2020-03-02 Thread Walter Lee Davis
for > user_id Maybe it was because I'm using a nested form and this record is a > child record > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group

[Rails] add user_id to new record

2020-03-01 Thread fugee ohu
and this record is a child record -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this di

[Rails] [JOBS] Senior Ruby Developers, London, UK - social enterprise - healthcare - zero corporate greed

2020-03-01 Thread Chris H
erred route through services. More and how to apply here <https://business.sh24.org.uk/careers-hub/senior-backend-engineer>. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving em

[Rails] Re: Froala WYSIWYG Editor on Rails 6

2020-02-27 Thread fugee ohu
On Thursday, February 20, 2020 at 7:35:54 AM UTC-5, SM Ehsan wrote: > > Hello > I a trying to add froala WYSIWYG editor to my rails 6 project. > but i am unable to add this. > can any one please tell me how can i add froala WYSIWYG editor to my > project? > > Thank you

[Rails] (jobs)-Sr. Ruby On Rails Developer

2020-02-27 Thread abdul salman
Hi All, Greeting’s from Benvia!! We have an urgent opening for *Sr. Ruby On Rails Developer **at *San Francisco, CA *Title: Sr. Ruby On Rails Developer * *Location: San Francisco, CA* *Duration: Long Term* *Job Description* Gather and analyse requirements, design and develop

Re: [Rails] Froala WYSIWYG Editor on Rails 6

2020-02-20 Thread Ariel Juodziukynas
-editor-as-a-transpiled-es6umd-module El jue., 20 feb. 2020 a las 11:44, San Ji () escribió: > Hard to pass this thread without mentioning Action Text; It is the Rails > way of WYSIWYG editor and shipped with Rails 6. > > If you know about it already, NVM. > As for the question it

[Rails] Re: Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-20 Thread San Ji
grow up from the Rails way. You are frustrating with Turbolinks, et al, these are normal. Me too, have the same experience, my project don't even use Active Record, for me it is a pain, and every design based on ER diagram is usually subpar IMO. However, I won't give up on Rails, it i

[Rails] Froala WYSIWYG Editor on Rails 6

2020-02-20 Thread San Ji
Hard to pass this thread without mentioning Action Text; It is the Rails way of WYSIWYG editor and shipped with Rails 6. If you know about it already, NVM. As for the question itself, I never heard about Froala until today. -- You received this message because you are subscribed to the Google

[Rails] Froala WYSIWYG Editor on Rails 6

2020-02-20 Thread SM Ehsan
Hello I a trying to add froala WYSIWYG editor to my rails 6 project. but i am unable to add this. can any one please tell me how can i add froala WYSIWYG editor to my project? Thank you -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q

[Rails] Re: Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-19 Thread Momeas Interactive
I'm not suggesting any breaking changes at all. I've been using Rails since Rails version 2 so I don't know what you mean "like that from the beginning" In the beginning, DHH said things would "just work" and, as a community we would value convention ove

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-19 Thread Momeas Interactive
Let me try again on a new Rails app and confirm that I am right.… if what YOU say is correct then I missed something when debugging and it is my bad. Will revert on this On Tuesday, February 18, 2020 at 1:41:02 PM UTC-5, Ariel Juodziukynas wrote: > > I understand your complain, what I&#x

Re: [Rails] Delayed job :: URGENT

2020-02-19 Thread Ariel Juodziukynas
3:21, Shubham Thakur (< shubha...@sodelsolutions.com>) escribió: > Hi, > > I am bit confused in rails delayed job > > 1) what is workers > 2) what is process? > 3) both workers and processes are same ??? > > -- > You received this message because you are subscribed

Re: [Rails] Delayed job::WORKERS

2020-02-18 Thread Hasan Diwan
https://github.com/zdennis/activerecord-import may be helpful to you, Shubham. On Tue, 18 Feb 2020 at 22:21, Shubham Thakur wrote: > Hi, > > I have around 25000, records and I want to save it into database using > rails delayed job. > > but its taking around 45-50 min, can any

[Rails] Delayed job :: URGENT

2020-02-18 Thread Shubham Thakur
Hi, I am bit confused in rails delayed job 1) what is workers 2) what is process? 3) both workers and processes are same ??? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiv

[Rails] Delayed job::WORKERS

2020-02-18 Thread Shubham Thakur
Hi, I have around 25000, records and I want to save it into database using rails delayed job. but its taking around 45-50 min, can anyone suggest me how can I do it faster. Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread San Ji
I don't think you can blame Rails 6 for that. It is a weird default, but it is like that from the very beginning. I never use the method, so, I guess, it can be considered as somewhat obscure. It seems to appear in Rails version 5.1 and no change since. Normally, I would use ActiveModel

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Ariel Juodziukynas
I understand your complain, what I'm saying is that I have some rails 6 projects using form_for remote and form_with and I didn't have to bind to the ajax events. rails-ujs and jquery_ujs both expect you to render a view with .js format and both libraries executes your response's j

[Rails] Re: Setting model association `source_type` to polymorphic object

2020-02-18 Thread UG
On Tuesday, February 18, 2020 at 6:59:15 PM UTC+1, Momeas Interactive wrote: > > I don't think polymorphism in Rails can work that way > > did you try > > > `has_many :users_following, through: :active_relationships, source: > :followable, source_type: &q

[Rails] Re: Setting model association `source_type` to polymorphic object

2020-02-18 Thread Momeas Interactive
I don't think polymorphism in Rails can work that way did you try `has_many :users_following, through: :active_relationships, source: :followable, source_type: "FollowableUser"` `has_many :projects_following, through: :active_relationships, source: :followab

Re: [Rails] //= require stylesheet with webpacker

2020-02-18 Thread Momeas Interactive
ot; at the top of the sass-rails docs: https://github.com/rails/sass-rails#important-note if you are trying to install Bootstrap, there are some bad tutorials on the internet. I think one of them tells you to put the bootstrap.scss into your application.js file. Don't do that. instead ba

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Momeas Interactive
Yes, I was discussing this in the Slack channel yesterday in the #coding room You're right that Rails no longer installs JQUery by default, but lots of things just go ahead and encourage it anyway. (which Is fine and not what I'm complaining about) This guide, for example, as I

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-18 Thread Momeas Interactive
ntation is in a "red alert" box, as if it is a side-note or "extra information," and you have to read through almost half of the entire document to find this obscure yet vital piece of information. For something that makes Rails basically non-usable as a modern web framework ou

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Ariel Juodziukynas
And also (sorry for the multiple responses), you are showing jquery code, rails moved out of jquery a long time ago (I think docs are outdated though), something might be wrong with your setup. El mar., 18 feb. 2020 a las 14:25, Ariel Juodziukynas () escribió: > Can you share some code

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Ariel Juodziukynas
Can you share some code to reproduce the problem? (a github repo with a simple rais app would be greate) El mar., 18 feb. 2020 a las 14:24, Ariel Juodziukynas () escribió: > I have a few rails 6 projects and remote forms works out of the box with > no event binding. Can you reproduc

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Ariel Juodziukynas
I have a few rails 6 projects and remote forms works out of the box with no event binding. Can you reproduce that problem with a clean rails app? maybe you have some other js messing up rails' ajax handers. El mar., 18 feb. 2020 a las 14:22, Momeas Interactive () escribió: > Incorrect.

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Momeas Interactive
).on "ajax:error", (event) -> >> $("#new_article").append "ERROR" >> >> >> basically… sitting there with a filled out form is exactly what happens >> if you just do a generic form_with and post it now in Rails 6 … literally, >>

[Rails] FlowCore - A multi purpose, extendable, Workflow-net-based workflow engine for Rails applications

2020-02-17 Thread Jun Jiang
GH repo: https://github.com/rails-engine/flow_core This is my Chinese New Year Hacking week's work, It's ready to open review now, not tested in production yet. I want to do this long ago because I believe a powerful workflow engine will help Ruby/Rails app releasing more efficie

Re: [Rails] do i need associations to use fields_for

2020-02-17 Thread Ariel Juodziukynas
accepts_nested_attributes_for explicitly checks for associations to exist https://github.com/rails/rails/blob/f33d52c95217212cbacc8d5e44b5a8e3cdc6f5b3/activerecord/lib/active_record/nested_attributes.rb#L340 fields_for does not require accepts_nested_attributes_for to be defined, but it won&#

Re: [Rails] do i need associations to use fields_for

2020-02-17 Thread Nicholas Schwaderer
Hello again Fugee, Fields in forms in Rails do not necessarily have to correspond with model attributes. Generally, you might find the Rails edge guide on forms very helpful- as well as the `form_with` API docs which are a bit more specific for some of these questions. https

Re: [Rails] do i need associations to use fields_for

2020-02-16 Thread fugee ohu
ject. > > Walter > > > On Feb 16, 2020, at 10:41 PM, fugee ohu > > wrote: > > > > Can I use fields_for for any models or do they have to be associated? > > > > -- > > You received this message because you are subscribed to the Google >

Re: [Rails] do i need associations to use fields_for

2020-02-16 Thread fugee ohu
ject. > > Walter > > > On Feb 16, 2020, at 10:41 PM, fugee ohu > > wrote: > > > > Can I use fields_for for any models or do they have to be associated? > > > > -- > > You received this message because you are subscribed to the Google >

Re: [Rails] do i need associations to use fields_for

2020-02-16 Thread Walter Lee Davis
for for any models or do they have to be associated? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrai

[Rails] do i need associations to use fields_for

2020-02-16 Thread fugee ohu
Can I use fields_for for any models or do they have to be associated? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-tal

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-16 Thread Ariel Juodziukynas
ot;ajax:success", (event) -> > [data, status, xhr] = event.detail > $("#new_article").append xhr.responseText > ).on "ajax:error", (event) -> > $("#new_article").append "ERROR" > > > basically… sitting there with a filled out

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-16 Thread Nicholas Schwaderer
/localhost:3000/artists/72/tours/1 -> /artists/72/press_releases >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Ruby on Rails: Talk" group. >>> To unsubscribe from this group and stop re

[Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-16 Thread Momeas Interactive
, xhr] = event.detail $("#new_article").append xhr.responseText ).on "ajax:error", (event) -> $("#new_article").append "ERROR" basically… sitting there with a filled out form is exactly what happens if you just do a generic form_with and post it now in

[Rails] what are the association requirements for fields_for

2020-02-16 Thread fugee ohu
tists, which belong to users user_venues belong to artists also but only where the artist user_id is the current_user -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it

[Rails] ActiveRecord Error: Where clause hash conditions with table prefix

2020-02-16 Thread Hélio Pereira
Hi everyone, Before submitting and issue in rails github I'm asking if this is a normal behaviour in rails activerecord. Without table prefix in comments table the following code prints the correct SQL Syntax: Post.distinct.joins(:comments).where(comments: { user: current_user }). t

Re: [Rails] Locusts in Africa

2020-02-15 Thread Hassan Schroeder
lley or remote -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on t

Re: [Rails] Locusts in Africa

2020-02-15 Thread Hasan Diwan
ert soon. >> > How much budget do you have available? -- H -- OpenPGP: https://sks-keyservers.net/pks/lookup?op=get&search=0xFEBAD7FFD041BBA1 If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest <http://bit.ly/hd1AppointmentRequest>*. Si vous voudrais faire

Re: [Rails] Locusts in Africa

2020-02-15 Thread Nicholas Schwaderer
in regions with limited connectivity etc. I don't know about Whatsapp, but I know Telegram supports location sharing. It also has a very user-friendly approach to writing "bots" which can interact with the user, accept their locations/photos/etc. You can hook this up to a Ruby on R

[Rails] Locusts in Africa

2020-02-14 Thread David Hughes
simply because the software is opensource. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To vie

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread Nicholas Schwaderer
:55:46 EST] "GET /artists/72/press_releases >>> HTTP/1.1" 200 2542 >>> http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> &

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread fugee ohu
uot;GET /artists/72/press_releases > HTTP/1.1" 200 2542 > http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscri

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread fugee ohu
uot;GET /artists/72/press_releases > HTTP/1.1" 200 2542 > http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscri

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread fugee ohu
uot;GET /artists/72/press_releases > HTTP/1.1" 200 2542 > http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscri

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread fugee ohu
uot;GET /artists/72/press_releases > HTTP/1.1" 200 2542 > http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscri

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread Walter Lee Davis
/artists/72/press_releases > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroup

[Rails] redirect shown in log, but browser not redirecting

2020-02-14 Thread fugee ohu
eases -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit

[Rails] Looking for clients

2020-02-14 Thread Asad Abbas
Looking for clients.I have a team of Ruby on Rails developers with experience and can work on any kind of project.Email me for queries.I am based in Michigan. Email:achev...@emich.edu -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"

[Rails] Re: how do i use jquery-datetimepicker with webpacker

2020-02-11 Thread fugee ohu
February 11, 2020 at 2:56:16 AM UTC-6, fugee ohu wrote: >> >> I installed it with yarn but I don't know how to get it working >> > How do I apply different options to different fields? -- You received this message because you are subscribed to the Google Groups "

[Rails] Re: how do i use jquery-datetimepicker with webpacker

2020-02-11 Thread 'jake' via Ruby on Rails: Talk
;t know how to get it working > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To view this

[Rails] how do i use jquery-datetimepicker with webpacker

2020-02-11 Thread fugee ohu
I installed it with yarn but I don't know how to get it working -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrail

[Rails] Setting model association `source_type` to polymorphic object

2020-02-10 Thread UG
. Is there a way I can bypass this? Many thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegrou

  1   2   3   4   5   6   7   8   9   10   >