On Sat, Oct 23, 2010 at 1:48 PM, Amit Tomar li...@ruby-forum.com wrote:
Hii all,
Sorry if it looks stupid question but i would like to know is it
possible to return response of javascript's confirmbox or messagebox to
ruby programme as a value .Means suppose i click on confirmbox's
On Sat, Oct 23, 2010 at 5:21 AM, Phoenix Rising polarisris...@gmail.comwrote:
Hey guys,
Chances are there's probably something I just plain missed here, but
for some reason it appears that my test DB isn't being cleared out
between tests when using shoulda with Rails 3.
I'm calling tests
On Oct 23, 12:49 am, Dani Dani li...@ruby-forum.com wrote:
Yes, the text you mention is from the original part mentioned above, but
in the meantime I have changed the text from Über uns to Ueber uns.
So that now I have the problem in the above text mentioned text. Of
course I can change the
yes i am
On Oct 22, 2:08 am, Colin Law clan...@googlemail.com wrote:
On 21 October 2010 20:31, blackbug blackbug...@gmail.com wrote:
I am trying to create class diagrams of my application using railroad
but i am getting following error:
I am trying to create class diagram using railroad
Hi,
I'm trying to instantiate the file from the saved file via paperclip.
The codes to open the file is:
barcodeFile = open(scan.barcode.url,r)
..but getting error of file not found as the url is extended as
/system/barcodes/1/small/barcode.png?1284296856
with the number
I guess I can use that. Thank you!
Martin
On Oct 19, 1:07 pm, Frederick Cheung frederick.che...@gmail.com
wrote:
On Oct 18, 5:46 pm, Gogov mgo...@gmail.com wrote:
===
class Paragraph ActiveRecord::Base
has_many :words, :class_name = String
end
is
serialize :words, Array
what
aha, i went back to ruby 1.8.7 and it works ... thx rvm :)
--
Posted via http://www.ruby-forum.com/.
--
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-t...@googlegroups.com.
To unsubscribe
Hello, thanks for reply!
I found my Gemfile in the new Rails app, and commented out this line:
gem 'sqlite3-ruby', :require = 'sqlite3', and then I tried budnle
install.
Result was:
Installing sqlite3-ruby (1.3.1) with native extensions /usr/local/lib/
Do you have sqlite3 installed?..
try
sudo apt-get install sqlite3 libsqlite3-dev
sudo gem install sqlite3-ruby
On Oct 23, 1:15 pm, gezope gez...@gmail.com wrote:
Hello, thanks for reply!
I found my Gemfile in the new Rails app, and commented out this line:
gem 'sqlite3-ruby', :require =
Ruby's fork() function isn't unimplemented on windows, fork() is an
function provided by the OS on Unix and Unix-like OS'es (e.g. Linux,
OS X, etc, etc.)
On Oct 22, 11:03 pm, daze dmonopol...@gmail.com wrote:
I'm on Windowsand I can't get anything to work with this
Hello everybody,
i'm trying to link a new view but it fails. Here is the code:
in the view I have the next link
%= link_to I18n.t('tog_social.groups.site.view_all_blogs'),
blogs_group_path(@group) %
and went i clink on it i have the next error in the browser:
undefined method
Hi,
I'm developing a website that will be displayed in both English and
Japanese. Normally I'd just put the strings in a resources file but
it's a bit more tricky now because:
* An English visitor should be directed to a different homepage than the
Japanese visitor.
* The navigation links,
Etilyeti
I am pretty good with HTML, and I know a bit of PHP and MySQL.
I was about to plunge my head in my big PHP/MySQL book when I realized
that it may not be the best programing language to learn.
Would you recommend Rails for beginners?
If not, what language would you recommend?
On Oct 17, 1:45 am, Cocy N novu3nov...@gmail.com wrote:
As mentioned below, ruby on rails does not seems to treat the
multipart form posts as based in RFC 2388.
e.g. .Each part of a multipart/form-data is supposed to have a content-
type.
Have you tried it? Works okay for me. I've just
At the end of the day, the most important thing is that it works. However, I
think we should try to get the database do the work. I'll apologize in
advance that this example is rails2.
# Project - TaskList - Task
Project.all(:group = projects.id, :joins = {:task_lists = :task},
On 23/10/2010 8:56 PM, tonypm wrote:
Etilyeti
I think this thread got a bit hijacked on some slightly esoteric
issues. Hopefully this didn't put you off.
I would say Ruby is a great place to start. There is loads of really
good stuff on the web that will lead you into good programming
*snip*
Hi,
Is Rails3 ActiveRecord supposed to be lazy loading? In the following snippet
when I call scoped on User model, it does return a ActiveRecord::Relation
object. But at the same time the query is performed: User Load (0.3ms)
SELECT users.* FROM users. If I do a u.all after it, no query is
On Oct 23, 1:27 am, marchmatch zjiam...@gmail.com wrote:
Hi,
Is Rails3 ActiveRecord supposed to be lazy loading? In the following snippet
when I call scoped on User model, it does return a ActiveRecord::Relation
object. But at the same time the query is performed: User Load (0.3ms)
SELECT
On Oct 23, 11:04 pm, Michael Pavling pavl...@gmail.com wrote:
On Oct 17, 1:45 am, Cocy N novu3nov...@gmail.com wrote:
As mentioned below, ruby on rails does not seems to treat the
multipart form posts as based in RFC 2388.
e.g. .Each part of a multipart/form-data is supposed to have a
Hello,
First of all, I'm new to Rails, fairly new to Ruby, and I know next to
nothing about Apache servers and development over a network, so excuse
me if this is a silly question.
I have Rails 3.0.1, Ruby 1.9.2, MySQL 14.14 and Apache 2.2 set up on a
Debian server on my home network with local
On Oct 23, 11:04 pm, Michael Pavling pavl...@gmail.com wrote:
On Oct 17, 1:45 am, Cocy N novu3nov...@gmail.com wrote:
As mentioned below, ruby on rails does not seems to treat the
multipart form posts as based in RFC 2388.
e.g. .Each part of a multipart/form-data is supposed to have a
On 23 October 2010 16:05, Cocy N novu3nov...@gmail.com wrote:
Have you read the URL page that I've posted?
Yes. IIRC, the OP complained that Rails worked perfectly from his
browser, but when using some testing software, the results were not
the same.
If so, how come you don't understand what
On Oct 24, 12:25 am, Michael Pavling pavl...@gmail.com wrote:
On 23 October 2010 16:05, Cocy N novu3nov...@gmail.com wrote:
BTW Did *you* read RFC 2388 rather than just punting on the assertions
from the Stackoverflow post? I quote: As with all multipart MIME
types, each part has an optional
Fred, That's right. If I run rails runner User.scoped then no query to db
at all. Thanks for the enlightening info.
On Sat, Oct 23, 2010 at 9:34 AM, Frederick Cheung
frederick.che...@gmail.com wrote:
On Oct 23, 1:27 am, marchmatch zjiam...@gmail.com wrote:
Hi,
Is Rails3 ActiveRecord
On 23 October 2010 16:34, Cocy N novu3nov...@gmail.com wrote:
I quote :
4.5 Charset of text in form data
Each part of a multipart/form-data is supposed to have a content-type.
Yes, I saw that too... and wondered if it was arguable that the RFC
contradicts itself.
But as far as I can
Alright this one's tricky - don't shy off!
I've setup a multi-file uploader with Rails 3 + paperclip + Ajax
Upload (http://valums.com/ajax-upload/)
My controller is as follows (which works):
def upload
@photoalbum = PhotoAlbum.create
@photo = @photoalbum.photos.create({
On Oct 24, 12:46 am, Michael Pavling pavl...@gmail.com wrote:
On 23 October 2010 16:34, Cocy N novu3nov...@gmail.com wrote:
Multipart data has to be turned into something... if you post a mix of
text fields and files, if one of those files is a text file, both
content-types would be
On Thu, Oct 21, 2010 at 12:31 PM, blackbug blackbug...@gmail.com wrote:
I am trying to create class diagram using railroad but getting error:
Error loading application environment.
(Are you running railroad on the aplication's root directory?)
On Oct 24, 1:57 am, Michael Pavling pavl...@gmail.com wrote:
Well, it is Saturday - don't people deserve a day off! :-) and... I
hazard a guess that the tone of your original posts *may* have
dissuaded some people from attempting to help... just a thought. NOI.
My apologies for impoliteness
Anyone know a suitable method to access results from:
http://dev.twitter.com/doc/get/users/suggestions/:slug ?
Apparently, the Twitter gem's current stable version does not support
the users/suggestions method. The Release Candidate (RC) versions do.
However, the RC versions are a little bit
i am in the application's root directory and executing
railroad -o myDiagram.dot -M
I tried exporting GEM_HOME and all other env variables, but no
success.
On Oct 23, 9:57 pm, Hassan Schroeder hassan.schroe...@gmail.com
wrote:
On Thu, Oct 21, 2010 at 12:31 PM, blackbug blackbug...@gmail.com
Why not just use curb or something similar?
On Oct 23, 8:48 pm, Christian Fazzini christian.fazz...@gmail.com
wrote:
Anyone know a suitable method to access results
from:http://dev.twitter.com/doc/get/users/suggestions/:slug?
Apparently, the Twitter gem's current stable version does not
On Sat, Oct 23, 2010 at 12:09 PM, blackbug blackbug...@gmail.com wrote:
i am in the application's root directory and executing
railroad -o myDiagram.dot -M
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- config/environment
(LoadError)
I
I had the same problem. The article below helped me solve it.
http://rbjl.net/20-rubybuntu-2-troubleshooting-common-ruby-ubuntu-problems
On Oct 23, 6:15 am, gezope gez...@gmail.com wrote:
Hello, thanks for reply!
I found my Gemfile in the new Rails app, and commented out this line:
gem
Is there any way to suppress the generation of the authenticity_token
div by passing an option to form for?
I'm generating a form that I will allow others to use outside of the
current session.
I've already put in the appropriate skip_before_filter
:verify_authenticity_token in the controller
I'm a Rails newbie, so please bear with me. I'm using version 3.0.0.
I have a form to create and update articles which uses a fields_for to
nest a 'collaborator' resource, of which an article :has_many. I
would like for users to be able to search for other users to add as
collaborators
Please contact me directly at kathl...@sg.com if you are interesting
working onsite at our client's office in NYC participating in cutting
edge development of financial services applications - $800-$1000 per
day.
Thanks,
Kathleen Griffiths
www.sg.com
http://www.linkedin.com/in/kathleengriffiths
I'm using paperclip in my rails 3 app to upload photos, resize with
ImageMagick and then post to S3.
For the life of me, I can't figure out why this process is s slow
on my localhost? Even without any resizing it's crazy slow... 30+
seconds for one photo?
And my network cpu aren't even
after watching the development log, it seems to be pretty quick on
everything expect the original file, since is only 29kb JPG? taking
about 9 secs.
On Oct 23, 6:27 pm, nobosh bhellm...@gmail.com wrote:
I'm using paperclip in my rails 3 app to upload photos, resize with
ImageMagick and then
This was caused by forgetfulness. When we switched to Rails3 we did so
by generating a new Rails3 project and copying the .git directory from
the Rails2 version and resolving the diffs. But we missed setting
config.active_record.schema_format = :sql.
--
Posted via http://www.ruby-forum.com/.
On Sat, Oct 23, 2010 at 8:04 AM, h0bit jsantana@gmail.com wrote:
Hello everybody,
i'm trying to link a new view but it fails. Here is the code:
in the view I have the next link
%= link_to I18n.t('tog_social.groups.site.view_all_blogs'),
blogs_group_path(@group) %
and went i clink
At first glance what seem to have happen is that you are developing and
then trying to see the results in a production environment
but didnt know that rake task run in development environment by default, so,
when you ran rake db:migrate in the production server
you were expecting to migrate the
take a look at this
http://github.com/joshmh/globalize2
--
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-t...@googlegroups.com.
To unsubscribe from this group, send email to
Been trying rewrite stuff all week but can't get to where I want to be.
If anyone has an answer or another way - v keen to hear.
I did wonder about this...http://github.com/shuber/proxy or my routes.rb
file - or more apache tinkering..
this didn't get me there either (lots of repeated stuff
Walter Davis wrote in post #956547:
On Oct 23, 2010, at 1:48 AM, Amit Tomar wrote:
If you make that confirm statement return into a function that sends
an Ajax request, or simply a normal full-page request to a URL, then
sure. Here's the most basic example of what I mean:
a
45 matches
Mail list logo