[Rails] Re: Hosting of Ruby on Rails3 App

2013-08-01 Thread Petr
I would recommend to try DigitalOcean - Cheap SSD cloud servers. I am running there few Rails apps now and I am satisfied. I will be glad if you will use this refferal link - https://www.digitalocean.com/?refcode=ba7c768ebb79 . Thank you. -- Posted via http://www.ruby-forum.com/. -- You

[Rails] rails 3 - nested model - jquery file upload

2013-01-29 Thread Petr Bobek
Post record once user select the photo? Thank you very much. Petr class Post ActiveRecord::Base has_many :photos, as: :attachable, :dependent = :destroy accepts_nested_attributes_for :photos, :allow_destroy = trueend class Photo ActiveRecord::Base belongs_to :attachable, polymorphic

[Rails] [windows] AAF Ferret-server can't get runnin'

2010-04-21 Thread Petr Makarov
I'm trying to run AFF's Ferret-server @ windows environment. I'd modified ferret_daemon.rb(*) so I can get DRb server starts and listening to provided port. Than I'm trying to build index for any model I'm getting that exception: NoMethodError: method reopen! not supported by DRb server

[Rails] Re: Re: IIS + Apache + Mongrel: Problem with big data submit form

2010-01-14 Thread Petr Makarov
I'm facing the same trouble. If you already got the clue please let me know (So would I) my email is makarov_petr[at]mail.ru. Thanx. -- 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

[Rails] text field with autocomplete

2010-01-07 Thread Petr Bobek
Hey everybody, I am using text field with autocomplete in my posts new action. That works great. Response from autocompleter in firebug: POST http://localhost:3001/posts/auto_complete_for_tag_name 200 OK 68ms but if I use the same in edit action it fails and I got this error. POST

[Rails] grab WMP video stream and convert it to FLV

2009-10-29 Thread Petr Bobek
it be even possible? Thanks for your suggestions. Petr -- 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

[Rails] Directing command output to a view

2009-09-27 Thread Petr Janda
user gets a please wait screen 2) and more importantly I want the output of the command sent in real-time or near real-time to the view, under the please wait message. And when the command exits, the user is redirected to another view. Any ideas whats the best way to do this? Petr -- Posted via http

[Rails] Re: Background tasks + multi processing

2009-04-19 Thread Petr Janda
ideas? Petr -- 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-talk@googlegroups.com To unsubscribe

[Rails] JRuby/glassfish v3 logging problem

2009-04-19 Thread Petr Janda
Hi all, Ive just tried to run my app with jruby and glassfish. It seems to work mostly fine, except one weird thing. Glassfish turns over log/development.log when its size hits 1.9MB, renames it to something like development.log_2009-04-20T13-57-30 but never creates a fresh development.log and

[Rails] Re: Passenger caching in development mode, wtf?

2009-04-15 Thread Petr Janda
Ok i resolved it, after hours of trying to figure it out, i noticed that the cause is having config.threadsafe! enabled in development mode. For some reason it causes caching to get enabled. This option should be documented better. Petr -- Posted via http://www.ruby-forum.com

[Rails] Passenger caching in development mode, wtf?

2009-04-14 Thread Petr Janda
NO! Any change to my code has to be followed by a restart of the application due to some caching that I dont want. Now that they are removing CGI support too, just how the hell am I supposed to be making a website in development mode without having to restart 500 times a day Thanks Petr

[Rails] Re: Passenger caching in development mode, wtf?

2009-04-14 Thread Petr Janda
I just tested with Ruby 1.8 and its the same behaviour. An clues people? -- 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,

[Rails] Re: Passenger caching in development mode, wtf?

2009-04-14 Thread Petr Janda
was ideal for simple setup in development mode where speed usually doesnt matter. PP Junty wrote: perhaps here: http://www.modrails.com/documentation/Users%20guide.html#RailsSpawnMethod but can't you use mongrel for development and passenger for production? Petr Janda wrote: I just

[Rails] Re: Subdomains with subdomain_fu

2009-04-04 Thread Petr Bobek
Thx Ram, my production server is http://rails.mysite.com so the example should be http://newband.rails.mysite.com = tld_size 2 should be fine. Could it be the problem, that I didnt flush the cache? Or is there another problem? Thx Petr Ram wrote: newband.mysite.net if thats the URL

[Rails] Re: Subdomains with subdomain_fu

2009-04-04 Thread Petr Bobek
Here is the log file. http://gist.github.com/90190 Cant see the trouble, but I might be wrong. Thank you. P. Ram wrote: -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] Subdomains with subdomain_fu

2009-04-03 Thread Petr Bobek
Hi all, I am bit stuck with subdomain_fu plugin. I want to create a new subdomain for newcomers. e.g. newband.mysite.net I set the tld_sizes: SubdomainFu.tld_sizes = {:development = 0, :test = 0, :production = 2} my routes.rb: map.resources

[Rails] Mongrel and application's public path problem

2009-03-31 Thread Petr Janda
in /usr/websites/myapp instead of /usr/websites/myapp/public. What do I have to do to fix this? Petr -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Just how the hell do you set Cache-Control max-age?

2009-03-23 Thread Petr Janda
Hi all, Ive been googling for couple of hours and I just cant figure it out. I want to set the max-age value to 300 for the WHOLE application, regardless of development or production mode. Is there anyone that knows? Petr -- Posted via http://www.ruby-forum.com

[Rails] Re: Multi-Site sessions

2009-03-21 Thread Petr Janda
No its not because one box cannot handle the load, but because certain activities the users would be doing are best done on a separate high-performance box(other than the normal web-server). -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You

[Rails] Re: Multi-Site sessions

2009-03-21 Thread Petr Janda
Anyway, session_domain works as expected. Thanks! Petr -- 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

[Rails] Multi-Site sessions

2009-03-20 Thread Petr Janda
to box 2 (ie. box2.domain.com), he or she will not have to login again. How can I do this? Thanks Petr -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group

[Rails] 2 types of method new

2009-03-05 Thread Petr Bobek
Hello, I want to make a two types of new user registrations. user/new/band user/new/user I want to show still the same form and pass hidden field with for example user_type (band or user). Any help would be most welcome. Thank you. -- Posted via http://www.ruby-forum.com/.

[Rails] should the polymorfic modeling be used?

2009-01-24 Thread Nyc, Petr
Hi experts, I am new to rails and am struggling for several days with a following model (Rails 2.2.2). People are submitting requests, each request has one submitter, one approver, several reviewers and several responsible people. I was able to get this model working: class Person

[Rails] partial + custom class

2009-01-16 Thread Petr Bobek
Hi all, I am using partial: %= render :partial = 'post', :collection = @posts % _post.rhtml li p class=dateem%= post.created_at %/em/p . . /li this will display my last 4 posts next to each other, but each of this li blocks have right-margin 33px and I would liko to set the last

[Rails] Re: partial + custom class

2009-01-16 Thread Petr Bobek
% if post == @posts.last -% Hi Franz, works like a charm! Thank you. P. -- 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

[Rails] Re: Help with model association

2008-12-30 Thread Petr Ruzicka
Thanks, I'll try it. Petr On Dec 30, 9:56 am, MaD mayer.domi...@gmail.com wrote: of course you can do it like this. you have acertain amount of workouts and trainees and add a new training every time you want. your models seem correct. your request would be like: - Workout.find(:first

[Rails] Help with model association

2008-12-29 Thread Petr Ruzicka
time - which Workouts Trainee_id2 did in last 30 days - who attended Training on 28.12.2008 etc. Is my association model correct ? Could I use join table directly like this ?. Thank you very much Petr Ruzicka --~--~-~--~~~---~--~~ You received this message because

[Rails] user + author in one model or not

2008-12-15 Thread Petr Bobek
) into the existing user table or build a new model Author to manage authors. Thanks for your thoughts. Cheers Petr -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby

[Rails] Re: user + author in one model or not

2008-12-15 Thread Petr Bobek
I was planning to create subdomain for each author, so I want to seperate them from the normal users. Maurício Linhares wrote: Why does it need to be a type? What makes an author so different to make it different from a common user? -- Posted via http://www.ruby-forum.com/.

[Rails] Re: custom REST action - template question

2008-12-14 Thread Petr Bobek
template 'graduations.html.erb'... How to do this in Schools controller? thanks, -- Pavel Krusek pavel.kru...@gmail.com class SchoolsController: layout 'mynewlayout' def graduations end . . And it will use your custom layout called mynewlayout Hope this helps. Petr ;) (BTW: čus

[Rails] Re: exceptions_logger

2008-12-09 Thread Petr Bobek
Rick wrote: Looks like your exception_logger hit the streets ready for Rails 1.2.6 maybe. logged_exceptions_helper.rb contains two references to ActionController::Pagination which is the way things used to be. Get this instead: git clone git://github.com/defunkt/exception_logger.git

[Rails] image crop + jQuery

2008-12-08 Thread Petr Bobek
I found a really nice image cropping plugin (http://deepliquid.com/content/Jcrop.html), it is written in jQuery, but I dont know how to implement this into my application. Could anyone help me? Cheers Pete -- Posted via http://www.ruby-forum.com/.

[Rails] find query

2008-12-01 Thread Petr Bobek
Hi, I have user table (last_activity, last_activity_at, ) and friendships table (many to many). What I am trying to do is to show to the user the last actions of his/her friends. [EMAIL PROTECTED] = User.find_by_username(username, :order = 'last_activity_at DESC', :include = [:friendships =

[Rails] Re: find query

2008-12-01 Thread Petr Bobek
That sort would have ordered the users (from the 'main' find) by descending last_activity_at, not the associations (which are loaded with a separate find) Fred Ohh I see, I was trying to sort friendships table, but there is no column last_activity_at. I guess that's it. :( or is there a

[Rails] Re: find query

2008-12-01 Thread Petr Bobek
I'd write the above query like this: u = User.find_by_username ... u.friendships.find :all, :joins = :friends, :order = 'last_activity_at desc' Cheers Fred, this is the trick I was looking for. Petr -- Posted via http://www.ruby-forum.com

[Rails] Re: email address as users nickname

2008-10-30 Thread Petr Bobek
Frederick Cheung wrote: That's going to be entirely dependant on the software you use to manage email accounts on your domain. Fred Thanks for your reply, we are currently running Merak mail server and its software to manage administration tasks. Petr -- Posted via http://www.ruby

[Rails] email address as users nickname

2008-10-27 Thread Petr Bobek
. Petr -- 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-talk@googlegroups.com To unsubscribe from

[Rails] third-level domain

2008-10-24 Thread Petr Bobek
Hi, I am wondering if there is chance to automatically create third-level domain. For example: new user registration, with rockguru nickname, and I would like to create a third-level domain for this user: rockguru.mydomain.com. Anyone knows how to do it? Is it possible? Thanks in advance. Petr

[Rails] Re: third-level domain

2008-10-24 Thread Petr Bobek
Frederick Cheung wrote: On 24 Oct 2008, at 15:41, Petr Bobek wrote: This is more a question for your network/sysadminy person, but you can create dns wildcars, ie *.mydomain.com all pointing at your production server. Fred Thank you, for your replay. So, it means that, there is no way