heyoman1's Profile
Reputation: 64
Whiz
- Group:
- Contributors
- Active Posts:
- 737 (0.58 per day)
- Joined:
- 30-November 09
- Profile Views:
- 15,544
- Last Active:
Dec 19 2012 11:25 AM- Currently:
- Offline
Previous Fields
- Country:
- US
- OS Preference:
- Linux
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- Nintendo
- Your Car:
- Saturn
- Dream Kudos:
- 75
Latest Visitors
-
.Aaron 
08 Jan 2013 - 20:22 -
raspinudo 
27 Sep 2012 - 00:39 -
darek9576 
08 Aug 2012 - 15:31 -
strawhat89 
20 Jun 2012 - 03:44 -
macosxnerd101 
18 Jun 2012 - 18:49
Posts I've Made
-
In Topic: Ruby/Sinatra POST to root of page
Posted 19 Dec 2012
You can say:
x = Item.new(...) x.save
Or to make it simpler
Item.create(...)
Which creates and saves a new record in the database in one method. -
In Topic: Ruby not allowing dynamic strings as an argument
Posted 7 Aug 2012
xclite, on 07 August 2012 - 10:55 PM, said:One thing with datamapper is to check the max length of that column in your schema. I'll get denied entries for filepaths often that are longer than a max length, for example.
THANK YOU! THANK YOU! THANK YOU! I can't believe something so small made my life chaotic for a day. I just couldn't figure out why, but THIS! I would have never thought about this! Thank you!
-
In Topic: Ruby not allowing dynamic strings as an argument
Posted 7 Aug 2012
Nope, string quotes don't work either. I have a screeny here that shows that the url does come out to a real string, both before and after creating the resource (output is in the terminal at the bottom). Note: I have Recording.create here, but that does the same thing as Recording.new ; Recording.save
-
In Topic: Ruby not allowing dynamic strings as an argument
Posted 7 Aug 2012
sepp2k, on 07 August 2012 - 07:04 PM, said:I assume in this case "It doesn't go through" means that no new entry was added to the database.
Yup, it doesn't show up in the database, as compared to the static string.
Oh, and Upload isn't a DataMapper resource, Post is and it's already defined and part of a database. -
In Topic: Count to a million
Posted 1 Feb 2012
4451
This is a contribution.
My Information
- Member Title:
- D.I.C Addict
- Age:
- 18 years old
- Birthday:
- July 18, 1994
- Gender:
-
- Interests:
- Programming. Life. Getting a girlfriend.
- Years Programming:
- 5
- Programming Languages:
- Ruby
Contact Information
- E-mail:
- Click here to e-mail me
- Website URL:
-
http://www.switch.tk/
- Twitter:
- imnotanerd
|
|


Find Topics
Find Posts
View Reputation Given


|
Comments
hulla
04 Sep 2011 - 21:17hulla
04 Sep 2011 - 01:53Vator
28 Jul 2011 - 22:53Vator
27 Jul 2011 - 22:18My main language is Portuguese,the reason of this horrible English.
Vator
27 Jul 2011 - 19:52Vator
27 Jul 2011 - 17:12nuya_020
28 Nov 2010 - 20:49