In the cheaper VPS I would recommend Webbynode http://webbynode.com/ , you
can go bigger but the low end is pretty good to start off with form most
small business web-apps. And it's a VPS so you can install whatever you want
-- they also have pre-build recipes for Rails 3 and other platforms whi
OK i think I fixed it by doing this instead:
test "should not save with duplicate name property" do
c = *Collection.new(collections(:one))*
assert !c.save, 'Saved a collection with a duplicate name'
end
--
You received this message because you are subscribed to the Google Groups "Rub
For example this is the documentation at:
http://guides.rubyonrails.org/testing.html#the-low-down-on-fixtures
# this will return the Hash for the fixture named david
users(:david)
# using the find method, we grab the "real" david as a User
david = users(:david).find
--
You received this messa
Interesting, I thought I had to do a *collections(:one).find* for it to be
taken out of the database, according to the documentation... but i did
notice, and my next question was going to be, why do I get an error when
doing the *find* method in the test?
1. So, I guess it is not true that
I have a few test cases, using unit test, I am new to testing but I don't
understand why, if fixtures are loaded and validations are in place (in my
case, I am testing that identical objects should not be saved to the
database) -- and I know that it works, because doing the test through the UI
If you want and IDE go with RubyMine, hands down best ruby IDE ever. If you
just want to keep it simple (sic) use vim...
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.
I do wish there was a different error message/exception raised if something
like this happened rather than a failed validation, since validations ca be
written to be independent of db column types and therefore not a reflection
of what is acceptable to the database...
--
You received this mess
Bah! Much ado about nothing, I'm pretty sure now that the problem is that
the database record only accepts integers for the phone column. I just
checked the schema file, should have done that much earlier!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
I have tested a simpler version and noticed this:
ruby-1.9.2-p136 :010 > /^\(?[0-9]{3}\)?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/ =~
"1234567890"
=> 0
ruby-1.9.2-p136 :011 > /^\(?[0-9]{3}\)?[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/ =~
"(123)4567890"
=> 0
ruby-1.9.2-p136 :012 > /^\(?[0-9]{3}\)?[-. ]?[0-9]{3}[-. ]
if you're on a mac, get homebrew, then type in your terminal "brew install
mysql"
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, sen
You might just want to see what Facebook's 'like' button does, but I don't
know how this is a Rails questions. Unless you use Rails to fill in the
parameter for the like button's message that Facebook then uses to fill in
the user's wall with...
--
You received this message because you are sub
To be a bit more clear about how I see the problem: as I said earlier,
http://www.rubular.com/ validates the correctness of the expression, I've
tried similar expressions in JS parsers, .NET parsers, Python parsers, they
all pass, I think it's the rails parsers that fails, and/or something abou
I've gone through about a couple of hours of building it up and tearing it
down, I need someone else's brain on this one please...
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@goog
Why doesn't this phone validation work?
validates_format_of :phone, :with => /^\([0-9]{3}\)[-. ]?[0-9]{3}[-.
]?[0-9]{4}|^[0-9]{3}[-. ]?[0-9]{3}[-. ]?[0-9]{4}$/,
:message => "is not a phone number"
tested with (123) 456 7890
testing it here does work: http://www.rubular.com
I am having the same issue...
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups
Also as someone mentioned already. You want to keep an eye on the
mysqlserver socket... But if your just working on local to develop
screw mysql use sqlite3 and just use mysql on production... Which
hopefully is not an iis server...
On Jul 2, 11:42 am, Dave Digital wrote:
> I'm trying to run " ra
By using JavaScript...
On Jul 1, 4:44 pm, InventoryTrackers
wrote:
> You've all seen that shopping carts have a checkbox that automatically
> moves the Bill To: fields (such as name, phone number, etc) across to
> the Ship To: fields.
> How would you approach this in Rails?
> Thank you
--
You r
Sure get a Mac ;)
No but seriously first there's no reason why your app should be in the
www folder the only thing you want to expose to the world is he public
folder and you can do that by simlinking I don't know what the
equivalent is on windows well I don't know why anyone does web dev on
a no
I would strongly suggest you look into rvm to manage your ruby/rails
environments. But you might also want to install gem as your own user
as opposed to root. The new gems will be kept somewhere in your home
directory.
- Victor
On Jun 30, 1:03 pm, emptyset wrote:
> I'm reposting this here from
Sounds too strange to me...
I think you could just ignore the built in package managers and
download and install your gems, rvm and whatever else from github and
the gem package manager. Forget about ubuntu or fedoras packages...
Victor
On Jul 3, 7:43 am, Kenneth wrote:
> But I very much di
Thanks,
I was looking at the guides, but didn't know exactly what version it
was updated for...
thanks for the rails3 beta link!
On Jun 28, 10:28 am, Fernando Brito wrote:
> I also like this one:http://railsapi.com/doc/rails-v3.0.0.beta.3/
> Please note that we are in beta4.
>
> There is also t
Love the Ryan Bates railscasts... work of genius.
On Jun 29, 1:19 pm, geolev wrote:
> Ryan Bates did a Railscast on this yesterday.
>
> http://railscasts.com/episodes/220-pdfkit
>
> On Jun 18, 4:23 pm, Rails Learner wrote:
>
>
>
> > Hi Everybody,
>
> > Can anyone give me a small working example
; > message.
> > Error message:
> > Missing the Rails 2.2.3 gem. Please `gem install -v=2.2.3 rails`,
> > update your RAILS_GEM_VERSION setting in config/environment.rb for the
> > Rails version you do have installed, or comment out RAILS_GEM_VERSION
> > to use the latest ver
lso looked at the
> site5.com forum and still looking at it but did not find any help to
> deploy the application . I tried all the ways i know...
>
> On Jun 27, 11:33 pm, Victor S wrote:
>
>
>
> > I deployed on Site5, so it's possible :)
>
> > Search their
Hi,
I'm new at this, how do I send the errors that one would get from a
standard ruby scaffold generator on a form that is attempted to POST
incorrectly? With all the beautiful formatting etc...
Right now I have this:
# POST /environments
# POST /environments.xml
def create
@project =
I'm being googledumb and just can't be sure to find the
rails3.0.0.beta API's... anyone have a link? Also i read somewhere, I
think the RVM gerbil told me, that I can generate my own api docs? Any
quick hints?
Thanks,
- V
--
You received this message because you are subscribed to the Google Gro
pull and there's your updated app, version controlled
deployment, closest to heroku without the coolne$$ of heroku ;)
On Jun 28, 1:33 am, Victor S wrote:
> I deployed on Site5, so it's possible :)
>
> Search their bulletin board for a tutorial, i can't remember the link
I deployed on Site5, so it's possible :)
Search their bulletin board for a tutorial, i can't remember the link
off hand, if you have trouble let me know.
If you are developing locally you don't need apache, just go to your
app in the terminal and say$ script/server
This is a pretty good getting
Hello,
I've just started playing around with the Rails 3.0.0.beta and I came
across some seemingly strange behaviour, where I expected:
"In previous versions of Rails, the rails generate scaffold command
would automatically create a controller specific layout, like app/
views/layouts/posts.html.e
I would recommend things by: The Pragmatic Bookshelf
http://www.pragprog.com/titles
Check out the Agile Web Development With Rails...
On May 22, 12:21 pm, goodchoi wrote:
> Hi everybody~
> Vey nice to meet you on this group.
>
> I'm a only web service planner operating a site
> "http://topics
"With Heroku there's no git pull -- just push the code and it does
everything else. "
The problem for me is that it wasn't that simple, the app didn't work.
While in an environment like shared hosting (if were comparing low
price things, Heroku has a small free option as well) I have control
over
I'm sure its simple on average. For me, deploying on Site5 was
simpler. I also use a blank repository from which i clone my
production site next to it on the server and my dev site on my local
machine through ssh. Same thing, git push, git pull, don't need heroku
for that, too costly anyway unless
I am hosting on Site5 and it was quite a simple process, some forum
tutorial reading might be required if you aren't very familiar with
passenger. I'm using git to synch between my production and local dev
code and its a breeze... Heroku is supposed to be simple, but I found
it more complicated tha
If you really really have to use Windows look into cygwin, and bitnamy
rubystack http://bitnami.org/stack/rubystack, also JetBrain's
http://www.jetbrains.com/ruby/ or SublimeText.
But if you can afford a Mac OS X laptop you will be on the same level
as 99% of ruby developers... hey, it's what Linu
This book is quite useful, you can just get the PDF version if you
wish:
http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition
This is a useful place to get info:
http://guides.rubyonrails.org/
On Mar 31, 7:08 am, IanJ wrote:
> Hi
> I'm hoping somebody can sugg
Um, because it's not? Because its easy and fast?
On Mar 12, 5:39 am, Michael Pavling wrote:
> > Our , yes, but i prefer textmate, because windows is not os
> >> IDE ? Ruby? What the fuck ?)
>
> Go on then... in the sliding scale between hardcore text editors (Vi,
> Edlin, Emacs) and bloaty IDEs,
To be honest, the language sounds quite ambiguous...
Things like "knowing" may not be as easy to define as you think...
your example of Xerox 'knowing' that their machines are being used for
copyright infringement doesn't cut it. To know is, in some manner, to
be witness, if you have not seen it h
37 matches
Mail list logo