Ruby-on-rails-3 Questions
Ad
How to use Rails'Active Record in a separated script.rb?
I have to run this script: /scripts/savedata.rb and in it, i need to use activerecord of my rails application. i
Creating a custom Guestbook Module for Alchemy CMS
I'm trying to build a guestbook module within a rails site using the alchemy cms framework. there doesn't appear to be much in the way of
NoMethodError in TutorsController#create undefined method `supert=' for #<Tutor:0x00007fa5593f99f8> Did you mean? super= super super super?
I've been trying to add a boolean to a ruby on rails app for tutoring. i keep running into the following error:
How to set dropdown select through data-attribute or text?
I am working on a javascript function which should copy shipping address form values to a billing address form section in case both are
Rails: javascript addEventListener does not find element in dynamic form
I am trying to implement a dynamic form in a rails app through ajax and did a couple of tutorials, but without success. the javascript
AngularJS with Rails 3.1 - trouble loading angular-seed
I've been playing around with angularjs - which is a kick-ass front end framework by the
Error pushing Ruby on Rails to heroku
I have added the pg and rails_12factor gem to my gemfile and tried to push my app to heroku but the website just says application error, i was
Enigmatic GET request from Rails app
I am seeing a strange thing, when i run the server for my rails app. this is the log: jatins-macbook-pro: silverspoon$ rails s
Sending multipart emails with Rails: how to favor the HTML version over the plain text one?
I setup a standard rails mailer with multipart view following the official guide, like this: mail(to: user.email, subject:
Testing ActionMailer multipart emails(text and html version) with RSpec
I'm currently testing my mailers with rspec, but i've started setting up multipart emails as described in the rails guides here:
Ad
Is it ok to use BCrypt's generate_salt method to create a token for password resetting in ruby on rails?
I'm creating a password_reset feature in rails the same way i did it when i used codeigniter. for a user to reset their
syntax error, unexpected ':', expecting ')' in Stripe form using Rails 3
I'm following ryan bates' railscast #288 "billing with stripe" and when i modify my form to include the credit card info i get the following
Shopify shopify_app generator private app in combination with shopify_api gem
A continuation of this question really:
Error trying to install shopify app in test store
I'm following the rails 3
allow user to submit an edit/update request
I have a site for a hobby im working on that has restaurant reviews on it. i want users to be able to add new restaurants in as well as edit the
=0A in the title of an email sent with Rails?
This is an action in my mailer def review_book(book) @book = book @subject = "we received #{@book.title}" mail(:to
What is a good way of Hiding mysql2 password when deploying with capistrano
So, here is my capistrano file load 'deploy/assets' require "bundler/capistrano" set :application, "xxxxxx" set :repository,
User.find('123-foobar') will return User with id 123
I've asked at github, but will try asking here as well. nothing
Create callback executing foobar twice
My model looks like this: after_create :foobar after_update :foobar def foobar update_attributes(:foo => 'bar')
How do I update a sequential attribute with foobar#{n} with n incrementing?
I want to write basically user.find(:all).each {|u| u.update_attribute("email","nil#{incrementing_number}")}
How to write ruby function inside shopify liquid?
Is there a way to write a custom function in ruby and call it inside the shopify liquid theme? i am really very new with both ruby and shopify,
Ad
Rails: How do I check if a column has a value?
How can i accomplish this? <% for agent in @broker.agents %> ... <% if agent.cell %><span
How do I execute a function only to the parent class of the form that holds "remote => true" in ruby on rails?
What i want to do is some how only apply the jquery function below to the class for the comment that's just been posted. instead the function is
Ruby on Rails: How do I execute a function before saving to the database?
I want to alter the data and save it then to the database when using the new / create function of the app.
Error: Uncaught TypeError: Cannot read property 'Constructor' of undefined bootstrap-popover.js
I'd like to use twitter bootstrap manually, on my rails project. but i've got this error, and some functions of bootstrap don't work.
How rails database connection pool works
I am learning rails database connection pool concept. in rails application i have defined pool size of 5. my understanding about
How to embed font-awesome icons into submit_tag
Trying to user font awesome icons for my buttons but i cant get it to show in the submit_tag <%= submit_tag icon("search"),
How to add new record to another table created within the same model on Rails console?
I have created a model using this command rails g model userpost postid:string postdesc:string than after i
Rails 3 - delete_all doesn't support limit scope whereas MySQL supports it
I have a table with 9 millions of records. i was periodically syncing this data to a third party. i am keeping a column that tells if a particular
rails 4 justifiedGallery script only load the latest post with images
When i create a new post with images it works, but when i create a new post with images, justifiedgallery doesnt apply the jquery script to the
Ad
Blog Categories
Ad