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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/83cebab4-47be-407e-b12b-298cc06459cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are the Docker images used by Travis CI publicly available?
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6b47d390-97a7-470c-86da-e0a74e0ee45c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I ran console.log(jQuery.fn.jquery);--(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?
On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(It's not a big deal, but it seems odd that's all. I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADuEqHKiEH_ZCgCKgNd1JRGOeLdjZE6FwgVNG2SfZA_SjtfBvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(It's not a big deal, but it seems odd that's all. I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(It's not a big deal, but it seems odd that's all. I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/864f76ee-b76b-4ff5-8c02-c2ec9628279e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Not quite sure what you're asking.
Rails by default has no root path configured. You have to add that in
yourself. You can have non-root paths too.
If you see a Rails app where the root path seems to work but there
isn't one defined it could be being proxied there by the webserver.
On Fri, Mar 29, 2019 at 3:40 PM fugee ohu <fugee279@gmail.com> wrote:
>
> I came across an app with no root path How does it work?
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ee73753f-cde1-4aa5-aa3d-54ce68610f73%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPzLa9YKmO3gxbNNREP8%2BNU2cQQ5qFCzzSSWQ1wY7cRBhoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ee73753f-cde1-4aa5-aa3d-54ce68610f73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tuesday, June 12, 2018 at 12:04:36 PM UTC-6, Skt Hg wrote:
Replying to myself in case someone hits the same issue.
First thanks Frank for the pointers you sent me. I am new to rails so it was very helpful to debug from a clean state.
I got to solve it, the main issue for me was a parsing error in the 'storage.yml' file. The storage engine was chocking on it, even if the file was passing several linters fine.
I kept the original file for later review, but rewriting it from scratch solved the issue.
Best
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/042d069e-cb20-45c1-ad45-9d566b28a8c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ActiveRecord::Schema.define(version: 2019) do
create_table "create_users" do |t|
t.string "name"
end
end
animals_schema.rb
ActiveRecord::Schema.define(version: 2019) do
create_table "create_dogs" do |t|
t.string "fur_color"
end
end
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a788e34d-2959-4111-afa1-868f1ebd3f7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
scope :ending, -> { limit(4) }
On Thu, Mar 28, 2019 at 4:52 AM fugee ohu <fugee279@gmail.com> wrote:
>
> How would I correct this scope statement from my model for rails 5.1.4
> scope :ending, :limit => 4
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91dc6590-2ad6-4b75-836e-c4a4e69701ea%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPz%2BWeTm3PXWMmG9QSGT6xbsBV-uatc2%2BasJx5qk2T-3L6Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/91dc6590-2ad6-4b75-836e-c4a4e69701ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
onsdag den 27. marts 2019 kl. 22.33.42 UTC+1 skrev Eito Katagiri:
You need to call .reset_column_information in third migration. Please referhttps://api.rubyonrails.org/classes/ActiveRecord/ for details.ModelSchema/ClassMethods.html# method-i-reset_column_ information You can insert and update data in migration, but you might want to consider using db/seeds.rb instead.HTH2019年3月27日(水) 23:36 <t...@stinto.com>:I'm running Rails 5.0.6, and I can't Google myself to any other occurences of this problem.The migrations fail when I have a migration that inserts data into a table, that has data for a column that was added in a previous migration file executed by the same migrate commandBasically I have 3 migrations that are run with the following command
rails db:migratefirst migration chronologically:
create_table :campaign_orders do |t|
t.integer :order
endsecond migration:
add_column :campaign_orders, :priority, :integerthird migration:
CampaignOrder.create(order: 0, priority: 1)The third migration fails, if all migrations are outstanding when running migrate command, but succeeds if you run the migrate command again. It fails with the following error:rails aborted!
StandardError: An error has occurred, all later migrations canceled:
unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/ 20190326143614_insert_ accepted_email_campaign.rb:66: in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
ActiveModel::UnknownAttributeError: unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/ 20190326143614_insert_ accepted_email_campaign.rb:66: in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)Now, I can just "fix" it by running the migrate command again, or as I did, rollback the migrations and put the added column in the create table migration and deleting the add_column migration.
My question is - does anybody know if this is a known issue, and if so, could someone provide a link.--
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 rubyonra...@googlegroups.com .
To post to this group, send email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .1eb04bc6-7c56-4555-a90e- 47b18a2f8d60%40googlegroups. com
For more options, visit https://groups.google.com/d/optout .
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8ac451f6-3513-49a0-b7ed-93034b46a582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAC9YFzdKJaY-MF7ZuFQB-bAHFw8D35-4%2Bp6wyBS%3D-TrUC6ZBWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAC9YFzdMTgD2LCzK9dB5M2DLC3qTsAkw5VoqhSiPu%3D244kaJ9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Saturday, March 9, 2019 at 5:03:46 AM UTC-6, Michael C. Bertoni wrote:
Hello Ruby on Rails Community!
My name is Michael Bertoni and I'm the SVP-Business Development with Source Meridian. I wanted to see if I could get your help to share this job with your community and network as I have two great full-time RoR positions located in Medellín, Rionegro or Cali Colombia.Also - If you are aware of any Rails Meetups or Slack Channels, besides "Bogata Ruby Meetup" in South America that would be great. I'm thinking there might be a list somewhere...Source Meridian is one of the fastest growing companies in the Colombia region and is an engineering and development focused services organization providing customers with early access to cutting edge technology, and helping them to create and maintain their competitive advantage in the marketplace. We have two offices in the United States and three offices in Latin America. Our offices are located in Philadelphia (US), Fort Myers (US), Medellín (CO), Rionegro (CO) and Cali (CO).
We have a tremendous opportunity for a Full-time Senior Ruby on Rails Engineer to work directly with an our HealthTech client. The job is located in Colombia, where you can work from our offices in Medellín, Rionegro or Cali. We offer great compensation, benefits, relocation package for "A" candidates.Here's the job below where you review, apply or refer the position to someone in your network.Job Overview - http://smrtr.io/_vXx
Michael C. Bertoni - SVP-Business Development - Source Meridian
michael...@sourcemeridian.com - 215.817.3295
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c5840e24-e6fa-4d4a-9904-1dbe14daea68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm running Rails 5.0.6, and I can't Google myself to any other occurences of this problem.The migrations fail when I have a migration that inserts data into a table, that has data for a column that was added in a previous migration file executed by the same migrate commandBasically I have 3 migrations that are run with the following command
rails db:migratefirst migration chronologically:
create_table :campaign_orders do |t|
t.integer :order
endsecond migration:
add_column :campaign_orders, :priority, :integerthird migration:
CampaignOrder.create(order: 0, priority: 1)The third migration fails, if all migrations are outstanding when running migrate command, but succeeds if you run the migrate command again. It fails with the following error:rails aborted!
StandardError: An error has occurred, all later migrations canceled:
unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/20190326143614_insert_accepted_email_campaign.rb:66:in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
ActiveModel::UnknownAttributeError: unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/20190326143614_insert_accepted_email_campaign.rb:66:in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)Now, I can just "fix" it by running the migrate command again, or as I did, rollback the migrations and put the added column in the create table migration and deleting the add_column migration.
My question is - does anybody know if this is a known issue, and if so, could someone provide a link.--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1eb04bc6-7c56-4555-a90e-47b18a2f8d60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BfENYVPaY3Q-EAJEVB96M%2B9tfGAEDE6NJaOQrtzK9g6chmCWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, March 27, 2019 at 4:08:55 PM UTC-4, Joe Guerra wrote:
hmm, I don't know why it was working before, but I got it working now.before I was using...//= require ckeditor/init[but I didn't have a file in the subfolder ckeditor/init it was config.js ]made the correction to ->//= require ckeditor/config
On Wednesday, March 27, 2019 at 3:30:14 PM UTC-4, Joe Guerra wrote:Can't seem to build my app in heroku, had no problems with it before... Preparing app for Rails asset pipelineRunning: rake assets:precompilerake aborted!Sprockets::FileNotFound: couldn't find file 'ckeditor/init' with type 'application/javascript'I'll keep googling and try to figure out what's going on.Any ideas are welcomed.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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/94594e0a-26f0-4b41-a6fe-7e273a248134%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, March 27, 2019 at 3:30:14 PM UTC-4, Joe Guerra wrote:
Can't seem to build my app in heroku, had no problems with it before... Preparing app for Rails asset pipelineRunning: rake assets:precompilerake aborted!Sprockets::FileNotFound: couldn't find file 'ckeditor/init' with type 'application/javascript'I'll keep googling and try to figure out what's going on.Any ideas are welcomed.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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5d36414e-f0b8-4e44-9846-ac6096ae14b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
rails db:migrate
create_table :campaign_orders do |t|
t.integer :order
end
add_column :campaign_orders, :priority, :integer
CampaignOrder.create(order: 0, priority: 1)
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/20190326143614_insert_accepted_email_campaign.rb:66:in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
ActiveModel::UnknownAttributeError: unknown attribute 'priority' for CampaignOrder.
/Users/tomwilliams/Projects/incard-rails/db/migrate/20190326143614_insert_accepted_email_campaign.rb:66:in `up'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `require'
/Users/tomwilliams/Projects/incard-rails/bin/rails:9:in `<top (required)>'
/Users/tomwilliams/Projects/incard-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
My question is - does anybody know if this is a known issue, and if so, could someone provide a link.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1eb04bc6-7c56-4555-a90e-47b18a2f8d60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def encrypt_text(text_To_encrypt)
# Ref: http://www.monkeyandcrow.com/blog/reading_rails_how_does_message_encryptor_work/
secret = Rails.configuration.miscconfig['encryption_key']
salt = Rails.configuration.miscconfig['encryption_salt']
key = ActiveSupport::KeyGenerator.new(secret).generate_key(salt, 32)
crypt = ActiveSupport::MessageEncryptor.new(key)
encrypted_data = crypt.encrypt_and_sign(text_To_encrypt)
encrypted_data
end
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/81f2a556-4d47-404d-a057-04174a8c15ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Looks like you are not redirecting the user to another page when the contact info has been sent.Do you want to redirect them to the home (or another) page and show a "Your message has been sent" alert?replace flash.now[:error] = nil with redirect_to root_path, notice: 'Your message has been sent!'--On Thu, Mar 21, 2019 at 10:05 AM Don Bottles <alg70021@gmail.com> wrote:--My rails app display the authenticity token in the browser url, when i click on send in my contact form, how do i make it not shown??here is it => http://localhost:3000/contacts/new?utf8=✓&authenticity_token=JidgUrJ2OXU%2Fy482tx8%2Bua0ZhqRwHSkXme9Rails 5.1ruby 2.3routes.rbRails.application.routes.draw do
resources :homepage
root 'homepage#index'
resources :contacts, only: [:new, :create]
endContacts controllercontacts.rbclass ContactsController < ApplicationController
def new
@contact = Contact.new
end
def create
@contact = Contact.new(params[:contact])
@contact.request = request
if @contact.deliver
flash.now[:error] = nil
else
flash.now[:error] = "Error, couldn't send Message."
render :new
end
end
end
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtEeD%2Bn0JNXuwkU9XzP6gyXUs2KxyyzyTTdmWZopb7jueQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ6MPz%2BacWb5ivioWN1ocuN_F2wR%2BL%2BG0Tf7iG5U8cf9XKr_rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJvOKtFAY8Qpi8x5qA3HrX2%3DChxXBQxHHEPjZqz%2B%2B2XpxK214g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
> On Mar 25, 2019, at 7:37 AM, Piyush Chowhan <peyushchowhan7@gmail.com> wrote:
>
> Hi,
>
>
> <td><%= f.check_box :tax_rates, :name => "tax_group[tax_rates][]", :value => tax_rate.id %>
>
> I want to fetch tax_rate.id to other table which is selected in the check box?
>
> The check box which is selected those id's I want to fetch in other table inside a parameter in array.
>
> Multiple check box's are selected want those selected check box id's in to array in the other table of params
Can you say a little more about your problem? It's not clear from the explanation above exactly what you're trying to do. Are you trying to get the values from the array of check boxes in a controller, and assign them to a different set of parameters?
Are you trying to do something in the page itself (maybe with JavaScript) to cause one set of check boxes to act on a different set of check boxes in the same page?
What do your parameters look like (in the development console) when you submit this form?
Walter
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/404B3A61-FE90-4FFD-8FBA-301B8ECE09A2%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5c644978-92b1-4058-84ba-8cbbd276770e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes I did. I have find the repo for this in github. https://github.com/max-power/iban/
in that they have mentioned that this repo is moved to https://github.com/max-power/bank so I have used that now and it is working. 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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAwHHQjqb0yJZxcmw9BLe0gJ%2BEhm8caT8Wb9NQMpwHUdrdU_gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
in that they have mentioned that this repo is moved to https://github.com/max-power/bank so I have used that now and it is working. Thanks
On Monday, March 25, 2019 at 2:13:21 PM UTC+5:30, Colin Law wrote:
On Mon, 25 Mar 2019 at 07:12, Sapna Mishra <sapna....@gmail.com> wrote:
>
> I have installed IBAN gem to my application.
>
> gem 'IBAN'
>
Did you run bundle install after that?
Colin
>
> I have created one validator class for this.
>
> require 'IBAN'
> class IbanValidator < ActiveModel::Validator
> def self.validate(iban_no)
> return IBAN.valid?(iban_no)
> end
> end
>
> but it gives me this error
>
> cannot load such file -- IBAN
>
>
> when I call the method without require I get below error
>
> uninitialized constant IbanValidator::IBAN
>
>
> I am not sure why I am not able to access IBAN to my application.
>
> --
> 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-ta...@googlegroups.com .
> To post to this group, send email to rubyonra...@googlegroups.com .
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .ec34d48a-ecd4-4be5-b8f9- 481394dbc093%40googlegroups. com
> For more options, visit https://groups.google.com/d/optout .
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+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6bef3c4c-efb9-48bf-8978-a0bbf002f584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.