Data dodania Pytanie
2018-02-12 19:02 Addressing migrations and schema changes when working with git branches »
I have a doubt about create a new branch. For example I already created a branch for category-has-many-through( i created categorizations and category...
(0) odpowiedzi
2018-02-04 13:02 How to start existing project rails? »
I found a project on GitHub but I have problems running it. Can someone please try and let my know how to do this? I downloaded the project, started ...
(1) odpowiedzi
2018-01-23 17:01 JRuby, gemstash and sqlite3 »
I'm trying to run gemstash with JRuby, but it seems to have a dependency with sqlite3-1.3.13 which of course fails because it requires a C native exte...
(1) odpowiedzi
2018-01-08 11:01 How should I name and make foreign keys in Rails 5.1? »
I'm just getting my start in developing in Rails so I thought I'd make an expense-tracking app for my family. As I'm sure will become obvious, I'm sti...
(1) odpowiedzi
2018-01-06 06:01 NOT NULL constraint failed error when populating foreign key field »
I'm trying to run a script I wrote to move some data from json files into my database, and keep getting the same error. Traceback: Traceback (most r...
(1) odpowiedzi
2017-12-27 18:12 Python: Getting all Urls from every open Google Chrome Tab »
I need to get all the urls from all open Google Chrome tabs in python 3 without intefering with the user. Im on Windows 10 using Microsoft Visual Stud...
(0) odpowiedzi
2017-12-25 05:12 Should primary key ever be reset? »
Not sure if this has already been answered, and this is kind of a dumb question, but I'm kinda new to using SQL in android and I've made a simple task...
(2) odpowiedzi
2017-12-19 20:12 How to chain raw SQL queries in Rails OR how to return an ActiveRecord_Relation from a raw SQL query in Rails? »
How can I run a raw sql query and get an ActiveRecord_Relation instance returned? On a sqlite3 db and Rails 4.2, ActiveRecords::Base.exec_query(sql)...
(0) odpowiedzi
2017-12-02 22:12 How to display websites in iframe »
I am using ruby and sinatra. I need to create a website that allows the user to upload a zipfile of other websites and display all of them in multiple...
(0) odpowiedzi
2017-11-28 20:11 Add usernames to database »
I have this line in an .erb file to get the input of the username <input type="text" placeholder="User Name" name="user[username]" value="<%#{@...
(0) odpowiedzi
2017-11-25 01:11 sqlite3_open works in swift playground not swift app »
when I run the following code in swift playground it returned success. When I copied it to my Xcode project it returned failure. I figure it has som...
(1) odpowiedzi
2017-11-11 23:11 Rails 5 uuid issue with sqlite »
I'm converting my rails 5.1 app to start using UUID instead of incremental ids as the default active_record. I've changed my migration files to use i...
(1) odpowiedzi
2017-11-09 08:11 How to update array field value with 'append' function »
In the database, I have an array field is_deleted with serialize function in the model. I want to append the array values in the database field. Here...
(1) odpowiedzi
2017-11-07 03:11 What is the best way to increment an integer at a certain rate over time using a Django powered site and SQLite? »
I am trying to display a number that will increment over time that is called from a very, very simple Django database. It will be called using jinja2 ...
(3) odpowiedzi
2017-10-20 12:10 Swift SQLite3 syntax and bind »
first of all, these are my functions: Insert function func insert(book : Book) throws -> Bool { var insertPointer: OpaquePointer? = nil ...
(1) odpowiedzi
2017-09-28 17:09 Rails' ActiveRecord doesn't see tables in SQLite3 database after migration »
I did rake db:drop rake db:create and rake db:migrate. When I run sqlite console, I get the following: sqlite> .tables ar_internal_metadata grou...
(0) odpowiedzi
2017-09-28 15:09 errors replacing development.sqlite3 with another development.sqlite3 on rails »
I am trying out an example from a book head first rails, i get to chapter 2 and i have issues following the instructions maybe because they used an ol...
(0) odpowiedzi
2017-06-14 15:06 SQLite - Get records which is not start with alphabet - IOS - Objective C »
IOS - Objective C - SQLite Query. I want records from user table which is name start with a special character or digit or else (Not start with alphab...
(1) odpowiedzi
2017-06-06 01:06 I can't migrate the database of my Rails app on Heroku with sqlite »
I'm following this tutorial on creating Ruby on Rail apps, and I've hit a roadblock. I am trying to migrate its database to Heroku, only to be told th...
(2) odpowiedzi
2017-05-12 17:05 ruby on rails' alphabetical order method doesn't place word boundary before "a"? »
I think this has something to do with Postgresql, because in a local sqlite3 database, I don't see the behavior. I'm creating a Ruby on Rails 5 app w...
(0) odpowiedzi
2017-05-05 22:05 Getting an error when try to do Heroku run rake db:migrate »
I am making small Sinatra app and trying to put it on Heroku server. when I do Heroku run rake db:migrate, Heroku is giving error "Gem::LoadError: Sp...
(1) odpowiedzi
2017-05-02 17:05 SQLite3 DB starts throwing SQLException on write after a few days in production »
We have a small internal Ruby on Rails service that uses a SQLite 3 database. After running perfectly for a few days, it starts throwing the following...
(0) odpowiedzi
2017-04-24 17:04 Save filled form to database - Ruby on rails »
I'm trying to submit a form to an existing database in ruby on rails. I have done some research but none of that works. Here's my form: https://pasteb...
(3) odpowiedzi
2017-04-12 22:04 Heroku-deployed Django webpage doesn't update when DB changes »
I have deployed an app in Heroku using Django. The Django program uses a SQLite database db.sqlite3 on root directory to populate its page. Separately...
(1) odpowiedzi
2017-03-13 23:03 ActiveRecord::StatementInvalid in Devise::RegistrationsController#create »
I'm trying to add some extra information to my Devise User model like first_name, last_name, age, gender and city. When I fill the signup form and cl...
(2) odpowiedzi
2017-03-07 03:03 column is there, but I receive: SQLite3::SQLException: no such column: requestor.birthyear »
I have a meetings table, which has a requestor (user) with an attribute birthyear. In the terminal I can do Meeting.find(1).requestor.birthyear But ...
(1) odpowiedzi
2017-02-27 17:02 Unable to read Images from xcode project in iPad IOS 10.2.1 64bit when download app from app store (testflight) »
Unable to read Images from xcode project for example. drag and drop one image to xcode project, then read using following code. __weak NSString *strT...
(1) odpowiedzi
2017-02-23 03:02 How to write the active record query »
I have three models in context of this question: class ClearanceBatch < ActiveRecord::Base has_many :items belongs_to :user end class...
(1) odpowiedzi
2017-01-22 08:01 Rails predictor array_to_json »
I'm, trying to create a prediction of product using predictor gem and ip_address but rails spits out no such function: array_agg someone have ...
(1) odpowiedzi
2017-01-07 08:01 How to make a script to insert data in my default sqlite3 database django »
I have defined my model and all in Django and if a user is registering via my application the user is well register in the database. The problem is I ...
(2) odpowiedzi
2016-12-13 12:12 Capistrano SQLite3::SQLException: no such table: users »
Ubuntu 16, ruby, 3.2, framework Sinatra. After cap deploy not running migration on production. I deploy with command cap deploy production my proje...
(2) odpowiedzi
2016-12-12 01:12 AR with sqlite3: Does setting limits on columns have any effect on db size? »
Im a bit new to AR and Sqlite. I'm working with a big dataset and struggle to figure out what's good practice for optimizing db speed and size. Eg. ...
(1) odpowiedzi
2016-11-17 11:11 ruby on rails installed successfully but project not opening on localhost »
I downloaded a website based on ruby on rails on my machine and tried to run it on my localhost. but it is not running. i have installed rails 4.0.2 a...
(1) odpowiedzi
2016-10-03 05:10 Database using SQLite3 (Ruby) is not inserting »
I am following a tutorial trying to learn the basics of connecting Ruby to a database. Currently, I have a program that receives an sms using twilio, ...
(1) odpowiedzi
2016-10-02 02:10 Segmentation fault with Rails after upgrading to OS Sierra, possibly related to sqlite3 gem »
After upgrading to OSX Sierra I am having an issue with random segmentation faults. It most commonly occurs when running rails test and I believe it i...
(3) odpowiedzi