Page 1 of 1
[00:17:10] CGibsonmm: hello, I am looking to dynamically load in a modal through a js jbuilder that renders a partial, I have the jbuilder working and rendering other things correctly, but when I try to also load in modal in the partial and I click the link to display the modal, I get the fade class, but no data from the modal is displayed.
[00:17:46] CGibsonmm: when I inspect the html the modal shows up but its like the bootstrap js is not calling it
[00:19:56] CGibsonmm: Is it because the bootstrap js looks at the dom only on the original page load? and if so is there any patch to override that?
[00:01:17] CGibsonmm: So would it be safe to get rid of the rest of the through: associations? and then go back and re-read there use?
[13:14:56] CGibsonmm: Question about the differences between pg on production and sqlite on local/dev, Its seems that local rails is building record associations but my production app and database all my through associations return empty arrays
[21:19:13] CGibsonmm: Question about the differences between pg on production and sqlite on local/dev, Its seems that local rails is building record associations but my production app and database all my through associations return empty arrays, What am I missing?
[21:22:01] CGibsonmm: say I search user.forum_posts which forum_post belongs_to user and belongs_to forum_thread and user has_many on both post and thread
[21:35:16] CGibsonmm: It's seem to be working intermittently say I search a diffrent user It will return the correct array,
[21:39:00] CGibsonmm: yeah updated the gist https://gist.github.com/cgibsonmm/449d20c2cf1525fadcda937b39800068
[21:44:35] CGibsonmm: hhhhm, when I originally built the association I never put a user_id column in the categories du to the fact that only admin would create them any way
[21:46:55] CGibsonmm: So aside from the fact that I am going to just add a column and add my user id to all, will that have any other sideeffects?
[23:50:48] CGibsonmm: Radar: in my categories create method I am calling @category = current_user.forum_categories.builds(create_params), I don't think that has anything to do with the Query but just letting you know how that is done
[23:55:25] CGibsonmm: that may make the diff I ran the user.forum_posts.to_sql and it returned "SELECT \"forum_posts\".* FROM \"forum_posts\" WHERE \"forum_posts\".\"user_id\" = 1"
[05:19:46] CGibsonmm: looking to access the after_create method on devise new user where would I place this? I have seen docs on after_create_sign_up_path but not where to add a method to the devise controller
[16:20:36] CGibsonmm: when calling a remote: true from a form where is it looking for the file, say i have a file structure of threads/posts/likes/_create.js. if the create link in in the posts show the create is proscessed correct but the js response is not found. how can i point the remote true to point to the likes/_create
[16:22:38] CGibsonmm: No template found for ForumThreads::ForumPosts::LikesController#create, rendering head :no_content
[16:27:54] CGibsonmm: i want it to add a like, then remove the like link from the page and replace it with delete like, i have all the js written its just not finding that js file witch is in forum_posts/links
[16:39:00] CGibsonmm: yeah it is but on the create i am getting No template found for ForumThreads::ForumPosts::LikesController#create, rendering head :no_content
[16:52:40] CGibsonmm: forum_posts/:forum_post_id/like/new(.:format) forum_threads/forum_posts/likes#new
[16:53:41] CGibsonmm: POST /forum_posts/:forum_post_id/like(.:format) forum_threads/forum_posts/likes#create
[19:55:57] CGibsonmm: #ids match it just wont update i am running rails 5 and have jquery3 and rails ujs
[16:32:02] CGibsonmm: I have a question about building a forum, i have a subjects model, a thread model, and a posts model. I want to keep my subjects and thread separate from each other/ resources nested, but I want to only create a new thread after routing through a certain subject, the thread model belongs_to a subject and a subject has many threads, but i do not want their resources nested, how can i link through subjects-> to thr
[18:49:04] CGibsonmm: goodday I Have a user 1:1 user_profile User is handled by devise I am trying to create the User_profile, with default params along with the create of the USER, I tried a before_create in the user model setting @profile = create_user_profile!(default_parmas) I am getting a stack lvl too deep error when I run RSPEC
[18:51:47] CGibsonmm: When I run through rails s and try to create my user It attempts to beginnig the transaction and calls CACHE User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "firstname.lastname@example.org"], ["LIMIT", 1]] about 100 times and then fails, Any help with why this is happining would be awesome
[12:44:28] CGibsonmm: I have a question about factory_bot, I have a 1:1 association for my user and user_profile model, and on user sign up it also call create on the user_profile, how can i reflect that in my factory generation, i keep ending up with a empty user_profile
[14:04:26] CGibsonmm: okay, anyway I have a question about routing through the a controller, I have an image model that on the create action it renders a crop method to crop a photo, I am looking to do the same thing on the edit method also. so it would route edit crop then update
[16:33:14] CGibsonmm: having issue with my cropper.js file called form a gem being rendered too soon and default styles and fucntion not working unless reloading the page. Is there an easy way to hold up the render?
[23:07:59] CGibsonmm: undefined local variable or method `post' for #<RSpec::ExampleGroups::CanViewIndividulPosts:0x007ffb137468a8
[23:08:14] CGibsonmm: I have a question about a feature test. line in question= "expect(page.current_path).to eq(post_path(post))" rspec is returning undefined local variable or method `post' for #<RSpec::ExampleGroups::CanViewIndividulPosts:0x007ffb137468a8
[23:10:56] CGibsonmm: I have a question about a feature test. line in question= "expect(page.current_path).to eq(post_path(post))" rspec is returning undefined local variable or method `post' for #<RSpec::ExampleGroups::CanViewIndividulPosts:0x007ffb137468a8
[23:13:43] CGibsonmm: I have it defined in my controller, i am going from index to show page, and both are defined in the controller
[23:19:16] CGibsonmm: I see I originally had new_post = create(:post), and was just calling (post) ThX
[12:40:15] CGibsonmm: is anyone familiar with semantic-ui? and how I can change variables in my rails app?
[14:39:44] CGibsonmm: help translating this line to haml <nav class="top-bar" data-topbar role="navigation">
[17:37:38] CGibsonmm: While adding user_name to rails 5 app, and following devise git hub to permit additional params, i entered code directly. but and still reciving unpermited_param error before the db rollback
[07:18:51] CGibsonmm: Hey, good morning. noob here trying to find some info on what to do with a validation. I am looking to validate users to allow them to sign up only if they live within the local area. I was looking to say validate via entering a zip code so say a range of all the zip codes in the given county EX.. 11120..11190 in my model file what would be a good way to define this?
[07:31:33] CGibsonmm: for the known future it will only be zip codes within the range of 12701..12795. so with out having to define every single number as a string is there a way I can define the range of code. to avoid having to type out 94 diffrent strings
[07:41:32] CGibsonmm: I have a sign up form that will ask and store your zip code. I just only want the create to run if they enter a zip code in that is bettwen the two numbers, each zip code in that range is a valid zip code i can take
[02:59:48] CGibsonmm: Hey I have a question I am buliding a dating website that is locals only. at this time i am building the comming soon mailer and I want to validate in my User model that at this time only people withen a certin range of zip codes can register. i figured i would validate :zip_code, :in 11111..11190 as example but it is nt working for me