Hello, I have a nested model form for PhotoAlbums. The form works fine
via the standard html. But what I need to do is render it as a partial
in another page it's erroring: "No route matches
{:action=>"create", :controller=>"photo_albums"}"
The models:
Projects
has_many :photo_albums
PhotoAlbu
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:
>
> Play Glob
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 here
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
rubyonrails-ta
did you remember to put { } in the values of the factories to make them
lambdas?, also try using Faker
--
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
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 p
On Sat, Oct 23, 2010 at 8:04 AM, h0bit 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 on it i have
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/.
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 wrote:
> I'm using paperclip in my rails 3 app to upload photos, resize with
> ImageMagick and then post to S3.
>
> For t
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 work
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 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 (co-autho
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 for
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 wrote:
> Hello, thanks for reply!
>
> I found my Gemfile in the new Rails app, and commented out this line:
> gem 'sqlite3-ruby', :r
On Sat, Oct 23, 2010 at 12:09 PM, blackbug 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 wonder what
Hm.. Do you think you could post your view too?
On Oct 23, 5:48 pm, nobosh wrote:
> 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):
>
> de
Why not just use curb or something similar?
On Oct 23, 8:48 pm, Christian Fazzini
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 support
> the users/suggesti
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
wrote:
> On Thu, Oct 21, 2010 at 12:31 PM, blackbug wrote:
> > I am trying to create class diagram usi
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 buggy
On Oct 24, 1:57 am, Michael Pavling 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 in the original
On 23 October 2010 17:28, Cocy N wrote:
> BTW, thanks for your reply.
You're welcome. After thinking about it for a bit, it *is* an interesting issue.
> You are the only one who replied to my post :)
Well, it is Saturday - don't people deserve a day off! :-) and... I
hazard a guess that the t
On Thu, Oct 21, 2010 at 12:31 PM, blackbug 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?)
>
> /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_orig
On Oct 24, 12:46 am, Michael Pavling wrote:
> On 23 October 2010 16:34, Cocy N 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 "text/plain", so how would a server know whi
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({ :p
On 23 October 2010 16:34, Cocy N 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 rationalise:
Multipart
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 wrote:
> > Hi,
> >
> > Is Rails3 ActiveRecord supposed
On Oct 24, 12:25 am, Michael Pavling wrote:
> On 23 October 2010 16:05, Cocy N 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 'Content-Type'". Optional
I
On 23 October 2010 16:05, Cocy N 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 the author of the pag
On Oct 23, 11:04 pm, Michael Pavling wrote:
> > On Oct 17, 1:45 am, Cocy N 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 t
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 i
On Oct 23, 11:04 pm, Michael Pavling wrote:
> > On Oct 17, 1:45 am, Cocy N 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
On Oct 23, 1:27 am, marchmatch 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 "users".* F
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
p
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*
h
> 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 Oct 17, 1:45 am, Cocy N 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 created a form wit
On Oct 23, 2010, at 1:48 AM, Amit Tomar 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 yes
tab
this respone st
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?
>
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, layou
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 `blogs_group_p
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 wrote:
> I'm on Windowsand I can't get anything to work with this
> plugin:http://github.com/rails/rails_upgra
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 wrote:
> Hello, thanks for reply!
>
> I found my Gemfile in the new Rails app, and commented out this line:
> gem 'sqlite3-ruby', :require => 'sqlite3', and t
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/
site_ruby/1.8/rubygems/installer.rb:483:i
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
I guess I can use that. Thank you!
Martin
On Oct 19, 1:07 pm, Frederick Cheung
wrote:
> On Oct 18, 5:46 pm, Gogov wrote:
>
> > ===
> > class Paragraph < ActiveRecord::Base
> > has_many :words, :class_name => "String"
> > end
>
> is
>
> serialize :words, Array
>
> what you are looking for ?
>
Hi,
I've resolved this issue. I found it on the source code of the library
as below.
# Returns the public URL of the attachment, with a given style.
Note that
# this does not necessarily need to point to a file that your web
server
# can access and can point to an action in your app,
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 st
yes i am
On Oct 22, 2:08 am, Colin Law wrote:
> On 21 October 2010 20:31, blackbug 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 but getting error:
>
> > Error loadin
On Oct 23, 12:49 am, Dani Dani 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 text form e.g
On Sat, Oct 23, 2010 at 5:21 AM, Phoenix Rising wrote:
> 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 via rake test:[uni
On Sat, Oct 23, 2010 at 1:48 PM, Amit Tomar 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 yes tab
> this resp
51 matches
Mail list logo