Enable Heroku labs feature in Heroku review apps | Fixed issues |
- Enable Heroku labs feature in Heroku review apps
- ArgumentError: parent directory is world writable but not sticky (bundle install)
- Where do I set template for rails error messages?
- Rails no route match
- Create constraints in rails migrations
- Nested attributes won't bind to model
- model association with a scope for trashable module
- How to add progress bar in active admin gem
- Automatically convert hash keys to camelCase in JBuilder
- Rails save into 2 models
- How to make faye client on server side in rails app?
- Rails - Flash message not displaying as intended using ruby case statement
- rails show page does not exist on staging but it does locally
- Rails params from URL
- Rails 4 - Yandex is not sending any mails
- Rails, after remote delete of item I get: First argument in form cannot contain nil or be empty
- How much ram memory I need for linux on virtual machine for rails
- What is the role of pipes inside Ruby? [duplicate]
- Ransack sorting deep associations is not working
- Performance issues when upgrading from ruby 1.9.3 to 2.2.2
- RubyOnRails- How to bundle?
- Rails Gem "Axlsx" - Rename Workbook
- Rails Arel complex query
- Rails4 form dynamic read only field
- How can i add tooltip to action item in my index page of active admin
- First request to rails app extremely slow
- Devise login doesn't work / no error messages
- How to set multiple parents inside Rails Devise configuration?
- Rails, fields_for generate fields for as many attachments (even 0), while I want only/at least one
- Multi table Inheritance on rails (active record)
Enable Heroku labs feature in Heroku review apps Posted: 01 Jun 2016 06:50 AM PDT I have a Heroku app that has review apps enabled. The review apps are configured based on the app.json file in the root directory of my application. I'm able to add addons but I don't seem to be able to enable the runtime-dyno-metadata labs feature. Below is just one of the many ways I've tried to get this working... |
ArgumentError: parent directory is world writable but not sticky (bundle install) Posted: 01 Jun 2016 06:41 AM PDT Link to github for error printout When i try to bundle install I receive the above error. I have tried what other posts suggest and the github community doesn't know the answer. I am running Arch and am using zsh for my shell. Updated Environment:
Thanks in advance! |
Where do I set template for rails error messages? Posted: 01 Jun 2016 07:01 AM PDT I want rails to show error message but using standard means I get Here's a minimal example reproducing the problem: Add validation to Edit After this start the server point browser to http://localhost:3000/users/new and press "Create User" button. You'll get: Apparently, there's another template somewhere, which says something like but I can't find it in rails code. |
Posted: 01 Jun 2016 06:47 AM PDT I am following this restful authentication tutorial
|
Create constraints in rails migrations Posted: 01 Jun 2016 06:29 AM PDT I have a migration that create a named constraint But in The problem is we are using For now the solution is to rollback some migrations and migrate again, but this is a really dirty hack How to stop rails creating this index? |
Nested attributes won't bind to model Posted: 01 Jun 2016 06:48 AM PDT I'm trying to allow nested attributes to be submitted with my model during a post. I'm using RubyMine as my IDE, and when debugging, I'm able to see the correct values that are being posted, but I can't figure out what they aren't then being set in the Models View Code Controller ** Edit ** Below is my params structure: |
model association with a scope for trashable module Posted: 01 Jun 2016 06:48 AM PDT I have a trashable concern that allows a user to trash ("delete") certain things. The issue is that even though that item can be trashed, it still has to be referenced if you view something older. If you do that now it won't find that object as I've changed the Here's my trashable module: now I have an Now I'm not able to access that with a model association such as:
Does anybody know how to achieve this? |
How to add progress bar in active admin gem Posted: 01 Jun 2016 06:21 AM PDT I am sending push notification to some user set on creation of question. I want to add progress bar so that user can see loading , when questions sent it should stop progress bar. I am not finding any way to do this in active admin. Following is my code : |
Automatically convert hash keys to camelCase in JBuilder Posted: 01 Jun 2016 06:11 AM PDT I am using JBuilder version 2.4.1 and Rails 4.2.6. I am trying to serialize a complex object to JSON. The code looks as follows:
I expect it to be rendered as But instead it keeps the original hash keys, only converting data_object into camelCase So the question is: what is the proper way to camelize hash keys using JBuilder? |
Posted: 01 Jun 2016 06:28 AM PDT I have array of hashes and want to iterate through it and save into db so i want to do something like: I have the class Is it possible? |
How to make faye client on server side in rails app? Posted: 01 Jun 2016 06:07 AM PDT I have been working on Faye gem for couple of days. I have created Faye client at client-side using below code: but I want this activity to be done on server side how to achieve this? Whenever a user gets login he should be subscribed to push server. |
Rails - Flash message not displaying as intended using ruby case statement Posted: 01 Jun 2016 06:26 AM PDT In my rails app I am using various keys for flash. Some to display a message but also some to temporarily store data. I only want :notice, and :alert to display when present. Here is my code. I can't figure out why nothing is displaying. It works fine when I remove the case statement but then every flash gets displayed which I don't want. |
rails show page does not exist on staging but it does locally Posted: 01 Jun 2016 05:48 AM PDT Anyone know why could a |
Posted: 01 Jun 2016 06:01 AM PDT i'm trying to parse an url. For example i have this link: localhost:3000/keys?size=3&color=blue I know there is so Utils.parse_nested_query but I don't find this . |
Rails 4 - Yandex is not sending any mails Posted: 01 Jun 2016 05:44 AM PDT Rails 4.2.4 - I am using In setup_mail.rb: Sometimes mail will send properly with this configuration, sometimes above error will occurs. How can I fix this issue? Also I have tried to fix it with the reference of Rails SMTP error, error will not be there but mail will not send. |
Rails, after remote delete of item I get: First argument in form cannot contain nil or be empty Posted: 01 Jun 2016 06:21 AM PDT I want to delete an image on click. This is in my view After I click on an image, the image gets deleted, but I get
In the first line of the code that I posted (@area I guess) My delete_area_attachment method in my area_attachments_controller I guess the @area variable has to be initialized, but why? What I am trying to delete is an area_attachment not an area, and I already initialized it, so what does the @area variable has to do with that? How do I go about it here? EDIT: my relative routes: My areas_controller |
How much ram memory I need for linux on virtual machine for rails Posted: 01 Jun 2016 05:27 AM PDT I am planing to install Ubuntu on virtual machine because it's better for rails developing than windows. But i only got 4 gb of ram memory. How much i should give to virtual machine, and which one is best? |
What is the role of pipes inside Ruby? [duplicate] Posted: 01 Jun 2016 05:34 AM PDT This question already has an answer here: I have a question as beginner. What is the role of a pipe? I mean this letter | For example: What I'm looking to understand, how Ruby understand and communicate with the pipes ? |
Ransack sorting deep associations is not working Posted: 01 Jun 2016 05:15 AM PDT I have many to many relations between models: sorting on attributes that come from Update: I have a grid and I want the sort to be based on string field inside the |
Performance issues when upgrading from ruby 1.9.3 to 2.2.2 Posted: 01 Jun 2016 04:56 AM PDT When upgraded from ruby-1.9.3-p545 to ruby-2.2.2 we experienced a 50% drop in performance on our application. I have done a fair amount of reading around this and I suspect that this may be a result of the change in the way that ruby does garbage collection. The confusing thing is that there have been no noticeable changes on our server metrics. We have not seen a spike in memory usage. If garbage collection was causing a performance slow down would we see a spike in memory usage ? Is this a sign that the performance issues are being caused elsewhere ? Possible by gems not playing nicely together ? |
Posted: 01 Jun 2016 05:25 AM PDT I am trying to install all dependencies via following command: It gave me following error: Then from this link: rails gem install ERROR: Error installing libv8: ERROR: Failed to build gem native extension I found this solution: It then installed the Then again I ran the command: Now its giving me following error: I tried deleting Please guide me. Thanx |
Rails Gem "Axlsx" - Rename Workbook Posted: 01 Jun 2016 06:06 AM PDT My workbook always named like my template "invoices_generate.xlsx". How can i rename this File ? Template "invoices_generate.xlsx.axlsx" : |
Posted: 01 Jun 2016 04:46 AM PDT I am trying to combine an arel query with a Product scope. Now the problem is that this results in error when I try to combine it with base_scope thats adds some other criteria. base_scope.where(query)
Is there a way to achieve that wihout going to plain sql? |
Rails4 form dynamic read only field Posted: 01 Jun 2016 05:20 AM PDT I have a rails form that needs at field to be readonly or not depending on the checkbox the user clicks. So far I have Is there a clean and concise why do this. I've never had to manipulate a ruby line via JavaScript before, but I would like to toggle that numbe field between :readonly => true and :readonly => false. |
How can i add tooltip to action item in my index page of active admin Posted: 01 Jun 2016 04:53 AM PDT In my app's admin portal i added action item , on its click new resource opened. I want to add tooltip to it , to clarify where does this button take. How can i add tooltip in active admin. Below is the code where i define an actionitem , i want to add tooltip here to give some information about this action item. end |
First request to rails app extremely slow Posted: 01 Jun 2016 04:27 AM PDT The first request to my rails app is extremely slow in all environments. This should not be due different way of caching/loading gems. It was fine two hours ago and no major changes are made. What I did the hours before I noticed my app turned slow:
Afterwards I obviously tried to undo all the changes I made, but for some reason my app is now slow in development, while it was perfectly fine before. Thanks in advance :-) UPDATE 1 When I send a request for localhost:3000, only after 12-13 seconds I receive: Started GET "/" for ::1 at random time Rendering behaving is normal. All requests after the first one are fine. |
Devise login doesn't work / no error messages Posted: 01 Jun 2016 05:30 AM PDT Guys i've looked everywhere to fix this issue but I'm out of luck. I got a devise login system and i signed up an account admin@admin.com in development and on the log i got the confirmation email and i went to that email and so my account got confirmed. Now when i try to login the console gives me this message: After this the page just refreshes and i'm not logged in. When i go to resend confirmation instructions it says 'email is already confirmed, try signing in' My sign in form looks like this: What could it be guys? I'm out of options after trying for days. |
How to set multiple parents inside Rails Devise configuration? Posted: 01 Jun 2016 03:59 AM PDT By default the devise inherited controllers will have application_controller as parent, and we can change the parent controller to "ApiBaseController" by following way: I need some Devise inherited controllers pass through ApiBaseController, while some other Devise inherited controllers need to pass through PublicBaseController, and few others as ApplicationController, etc. But we can set one parent at a time for one Rails Application by following way. Any help would be appreciated. |
Rails, fields_for generate fields for as many attachments (even 0), while I want only/at least one Posted: 01 Jun 2016 06:38 AM PDT I have areas and every area has multiple images through area_attachments. I have a modal to edit each area. I also want to edit area_attachments in each area so I have a f.fields_for in every area form. Because it is multiple upload I only want one field so the user can upload more images to an area. As you can see I have a first_rendered variable, so if an area has more than one area_attachments the field will only show once, there is no reason for more fields. But if an area has no area_attachments at all, the field will not show up at all. What would you suggest I do here? Also, would you do something else instead of this first_rendered variable I used? Generally, how would you do it so only one field is generated? |
Multi table Inheritance on rails (active record) Posted: 01 Jun 2016 06:40 AM PDT I am trying implement a Multi table Inheritance. In my situation I am trying modeling Appliances. Appliances have common attributes like price, name and model but there are different types of appliances like TV, Freezer, Fridge with different attributes (temperature, size, etc...). I search and I found this gem https://github.com/hzamani/active_record-acts_as. What you think ? What is the best way to implement this ? There is other pattern to implement this ? |
You are subscribed to email updates from Newest questions tagged ruby-on-rails - Stack Overflow. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
awesome post presented by you..your writing style is fabulous and keep update with your blogs
ReplyDeleteRuby on Rails Online Training Bangalore