heyoman1's Profile User Rating: *****

Reputation: 64 Whiz
Group:
Contributors
Active Posts:
737 (0.44 per day)
Joined:
30-November 09
Profile Views:
18,438
Last Active:
User is offline Jan 15 2014 06:45 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
Nintendo
Your Car:
Saturn
Dream Kudos:
75

Latest Visitors

Icon   heyoman1 Figured out what a status is. NO NEED TO PANIC!

Posts I've Made

  1. 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.
  2. In Topic: Ruby not allowing dynamic strings as an argument

    Posted 7 Aug 2012

    View Postxclite, 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! :D
  3. 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

    Posted Image
  4. In Topic: Ruby not allowing dynamic strings as an argument

    Posted 7 Aug 2012

    View Postsepp2k, 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.

My Information

Member Title:
D.I.C Addict
Age:
19 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:
Website URL  http://www.switch.tk/
Twitter:
imnotanerd

Comments

Page 1 of 1
  1. Photo

    hulla Icon

    04 Sep 2011 - 21:17
    Oh thanks. I got it :)
  2. Photo

    hulla Icon

    04 Sep 2011 - 01:53
    How do you get the brogramming badge?
  3. Photo

    Vator Icon

    28 Jul 2011 - 22:53
    Thank you! ^^
  4. Photo

    Vator Icon

    27 Jul 2011 - 22:18
    Oh..I'm sorry to hear that.I'll change my birthday,hahaha,I was kidding,obviously.I'll post in the forum after learning English better :(
    My main language is Portuguese,the reason of this horrible English.
  5. Photo

    Vator Icon

    27 Jul 2011 - 19:52
    I'm fine,better after getting a 'hello' from you.And you?
  6. Photo

    Vator Icon

    27 Jul 2011 - 17:12
    Hello!
  7. Photo

    nuya_020 Icon

    28 Nov 2010 - 20:49
    hello..can i ask something about system?
Page 1 of 1