Editor for images rmagick | Fixed issues |
- Editor for images rmagick
- How to get S3 object url using S3.client
- How pass params to url for show in other view
- What is ActiveRecord Persistence?
- Ruby - RoR. ActionController::RoutingError (uninitialized constant ...)
- MIME type is nil after upgrading from Rails 4.2.x to 5
- Capybara is not finding fields when form has file_field input
- Two owned stripe accounts on an app (Rails)
- Rails 4 + Devise: Send welcome email with password reset instructions
- Memory consumpton inside sidekiq worker
- Getting an undefined method even though I have defined it in my controller
- From Parse Push to custom integration
- Storing configuration info and accessing it from module
- rails make select tag remember selection
- Foreign key display_name in chartkick
- Creating demo data for rails application on per account basis
- facing issue with image url in production mode
- session variable is not recognized anymore after migrating js code to assets/javascripts in rails app
- rails find <Item:0x007fa154cc5860>
- Best practice: Rails paginate biggish data with partitioned table
- Use of delay in ActiveJobs
- Deploying error with capistrano: "bundler: not executable: cap"
- Rails Paperclip and aws s3 integration error "uninitialized constant Paperclip::Storage::S3::Aws"
- Is there a way to Get retweets of all tweets in one call?
- "render :partial" can't find files when called on its own
- Ruby on Rails server DB to share in Java Swing Desktop Application
- Rails: ActiveRecord:RecordNotUnique with first_or_create
- Using Ruby on Rails [on hold]
- I18n not loading translations with apartment gem rails
- type="email" doesn't check all cases
Posted: 12 May 2016 06:54 AM PDT I need an easy method for defining how the logos are placed on images of products. How can I implement this using RMagick or any other image library for Ruby? |
How to get S3 object url using S3.client Posted: 12 May 2016 06:54 AM PDT I have uploaded a file in S3 in rails and i want the download url for that file but i am getting error undefined method `url_for' for |
How pass params to url for show in other view Posted: 12 May 2016 06:29 AM PDT I'm on index.html.erb where I have a search by register, when I click on button, pass by url this: And method search_employee_register is this: My portabilities_controller is this: But I have this error: Being that I have this register, what is my wrong? I want just that show all authorizations that employee. |
What is ActiveRecord Persistence? Posted: 12 May 2016 06:26 AM PDT I have looked at the documentation, a bunch of SO threads, but I can't see clearly defined anywhere what persistence is, and where it should be used. I see it is something to do with checking if a record is new or not, but I don't see why that is useful. By 'clearly', I mean 'simply enough for a newbie to understand' :) |
Ruby - RoR. ActionController::RoutingError (uninitialized constant ...) Posted: 12 May 2016 06:35 AM PDT for first sorry for my english. I've a Rails app with a namespaced route that works fine on localhost but does not work on remote Server. This is my error: My routes.rb file is: pap_tags_controller.rb It's very strange, can you help me? thanks. |
MIME type is nil after upgrading from Rails 4.2.x to 5 Posted: 12 May 2016 06:01 AM PDT After upgrading from Rails 4.2.x to 5, whenever I make a call to my controllers the MIME type is nil. Whenever I log the In contrast, when I try to create a new Rails 5 project the correct format is being printed: I've tried reading the upgrade docs, but haven't found anything pertaining to this problem. |
Capybara is not finding fields when form has file_field input Posted: 12 May 2016 05:59 AM PDT I have a very strange problem with my specs. I have form that looks like this: And feature spec that looks like this: This spec is failing. Capybara is not updating the First name input with nil value. But when I change input to this: everything works as expected. Why is that? |
Two owned stripe accounts on an app (Rails) Posted: 12 May 2016 05:54 AM PDT I know there are similar questions to this one, but I haven't found a clear answer. I have an ecommerce that charges to two different stripe accounts (different owners). However, this two accounts are "controlled". This means that I don't have to create charges on behalf of multiple accounts. I'd rather make direct charges to these two accounts. Knowing this: do I have to set up Stripe Connect? Or can I manage multiple keys for the different accounts? In case I have to use Stripe Connect, how can I create the account so it's hardcoded? |
Rails 4 + Devise: Send welcome email with password reset instructions Posted: 12 May 2016 05:52 AM PDT I have my registrations set up such that I create the account for a user with a predetermined password, then I would like to send them a welcome email, with a link to the Devise My method fails because when the User follows the link, they see the following: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided." How can I make my welcome email include the proper link for password reset? |
Memory consumpton inside sidekiq worker Posted: 12 May 2016 06:32 AM PDT
For example:
|
Getting an undefined method even though I have defined it in my controller Posted: 12 May 2016 05:54 AM PDT I'm using Rails 4.2.3. I want to have a tabbed menu on my admin login page, so I added the following to my app/controllers/admin_controller.rb file … Here is what I have in my app/views/admin/index.html.erb file … However, when I visit my /admin/index page, I get this error Where am I going wrong? |
From Parse Push to custom integration Posted: 12 May 2016 05:24 AM PDT I'm trying to migrate my Parse handled notifications to a home-made service made in ruby on rails. It was pretty easy to do so with Apple Push Notifications, using But I discovered that for Android, Parse uses its custom integration, making all the tokens that i have (>1000) invalid with Google Cloud Messaging. My question is: how can I use Parse tokens in a custom integration with rpush, or from scratch, in Ruby on Rails? Hope my question is clear enough, don't hesitate to ask me details. |
Storing configuration info and accessing it from module Posted: 12 May 2016 05:58 AM PDT I'm writing an API (a module in lib/specific_api.rb controllers/sessions_controller.rb
|
rails make select tag remember selection Posted: 12 May 2016 06:27 AM PDT I have a form with select It seems to be working. So I want to include blank option with text
But now This blank option is always selected. For example If I select |
Foreign key display_name in chartkick Posted: 12 May 2016 04:58 AM PDT I am working with the Activeadmin and chartkick, I am trying to show the display name of the foreign key since i group the chart with foreign key here is my code |
Creating demo data for rails application on per account basis Posted: 12 May 2016 05:32 AM PDT I would like to create some sample data for a user when they register so that they do not have to start with a blank canvas. I am presently defining lots of static data in classes which I then iterate over, however setting up relationships is cumbersome and I think that this is quite brittle. I think that having some demo fixtures (separate from my test set) would be a good way to do this, but as records are tied to an account I can't see how I can insert this data and attach it to the account when loading the fixtures. This might not even be the best approach, but if there is a better way then please let me know. |
facing issue with image url in production mode Posted: 12 May 2016 05:57 AM PDT i have this type of code its working fine for development mood. i got url like this for image but its not working in production mood i got url like this for image please help me to solve this. thank you |
Posted: 12 May 2016 06:04 AM PDT I moved some javascript that was in a content_for(:after_js) at the end of an html page to a proper js file inside my assets/javascripts folder in my rails app. I created a js.erb file that looks like this : but now I always get the error : undefined local variable or method `session' for #<#:0x007feb90e24400>. It was working fine when the js was in the content_for(:after_js) at the end of my html.erb file and it was ok with the session variable. What did I do wrong with my javascript migration ? |
rails find <Item:0x007fa154cc5860> Posted: 12 May 2016 04:19 AM PDT I am trying to debug my rails app in production mode. So I want to see which item from database I get but when I write in my view When I write How do I find this Controller: And view: |
Best practice: Rails paginate biggish data with partitioned table Posted: 12 May 2016 03:56 AM PDT If I have a table partitioned and indexed by created at time in 6 months like this: When I do Rails pagination it will generate query like this, but is this be slow to run since the partition indexed column is not reference in the where clause? and will it touch all tables? Some people suggest to use range search to paginate biggish data, isn't that the same to just put the partitioned index column in the where clause like this? Any suggestion on perform pagination on biggish table using GEM Kaminari or will_paginate? |
Posted: 12 May 2016 03:42 AM PDT I'm trying to move my rails app's background processing library from DelayedJob to SideKiq. I went through the documentation for ActiveJobs and for Sidekiq, both of which suggest either a However, on just adding the SideKiq gem, adding Sidekiq as the value for Where is delay defined? Is it an alias for perform? I tried searching for it in Rails' repo but to no avail. |
Deploying error with capistrano: "bundler: not executable: cap" Posted: 12 May 2016 03:43 AM PDT I am supposed to work on a quite antique Ruby On Rails project to make some minor (mostly HTML and CSS) changes on some webpages. I did not work with Ruby On Rails before and I am just getting into it. I have cloned the project via git from github and installed all gems via 'bundler install'. Note that I am using an old version of Ruby (1.8.7) since I was told the project would not work with a newer version. Note also I am on Windows 7 and the project was built with Mac OS X. Now I am trying to get the changes I made to the live site (after commiting and pushing the changes to the git repository) with Capistrano (Installed and Version 2.8.0) which should be possible with However when I try this I just get: Any ideas what is going wrong here? Thanks alot in advance! Kind regards, Peter |
Rails Paperclip and aws s3 integration error "uninitialized constant Paperclip::Storage::S3::Aws" Posted: 12 May 2016 05:50 AM PDT I have gone through different posts but got no help, I am trying to upload my images to Amazon S3 I double checked my asw credentials they all are correct, here are the required files please help
And while uploading Iam still getting the error
|
Is there a way to Get retweets of all tweets in one call? Posted: 12 May 2016 03:14 AM PDT I want to know how many retweets were done for my tweets? I guess this can do it, https://dev.twitter.com/rest/reference/get/statuses/retweets_of_me But the problem is that above function is not in the twitter gem, so how to do it? in twitter gem we have this function: but there is no function such as so how to do it? |
"render :partial" can't find files when called on its own Posted: 12 May 2016 05:34 AM PDT I have a rails 2.2.2 app with the following odd problem. There's a If i do this, it works fine: Ie, it renders out the However, I want to break this down into a couple of steps, where i render the partial into a text string, and then use that string in the javascript (i just want to do this for a bit of extra debugging). I'm trying to do this like so: this is now starting to complain about not being able to find the partial: (i've formatted the above a little, for clarity) If i tell render the actual file extension, like so: then it finds that first partial, but i get the same problem with other partials this it references. It's like Is there an extra option i need to pass to thanks, Max |
Ruby on Rails server DB to share in Java Swing Desktop Application Posted: 12 May 2016 04:41 AM PDT Namaskaram, I am developing a Task Management application to work on both mobile and Desktop. I have selected Java Swing framework for Desktop and Android for Mobile Application respectively. The server developed in Ruby on Rails. I want to share Database of server to my Java Swing Desktop Application. I have no idea, how to connect Ruby on Rails server database to Java Swing application. Please help me. |
Rails: ActiveRecord:RecordNotUnique with first_or_create Posted: 12 May 2016 04:58 AM PDT I have this index in my Model's table: And this code: is randomly causing an ActiveRecord::RecordNotUnique exception in our application, the issue is:
I've read on the rails doc that I tried different approaches, including Retriable gem to retry a certain number of times to repeat the operation but RecordNotUnique is still raised. I even tried to change the logic: But the code still raise the custom exception I made and I really don't understand how it can fails to create the record on the first try because the record exists but then when it tries to find the record it doesn't find it again. What am I missing? |
Posted: 12 May 2016 02:58 AM PDT i'm new to ruby on rails and im trying to create basic website i have already designed and built Template using bootstrap but now i want to add the backend stuff i.E write post , show post. ive gone over codecademy etc and i have set up & installed ruby on rails on my machine and its all working i just cant seem to get my head around how to create pages & how to make things 'work' lol all tutorials out there seem to just show you how to load a blog in 10 mins but seem to miss most of the basics for somebody really new to it |
I18n not loading translations with apartment gem rails Posted: 12 May 2016 03:09 AM PDT I am making a multi tenancy app using the apartment gem. I have it all set up and everything works as expected. I'm also using Rails Internationalization (I18n) with active record backend to store translations. My current setup Translation Table Apartment.rb configuration I've added the Translation model to the list of excluded models so its global across all tenants In my translations table I have translations for both English (default) and Norwegian. On the main domain everything works as expected switching between English and Norwegian but all translations go missing once I load a tenant. Demo in console: I'm not sure why translations are missing when in a tenanted environment. I was figuring having the Translation model in the list of excluded_models should do the trick but it seems something is wrong somewhere. Any clues? Thanks |
type="email" doesn't check all cases Posted: 12 May 2016 03:01 AM PDT I am using How I check 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 |
No comments:
Post a Comment