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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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/.
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
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
% 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
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
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
) 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
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/.
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
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
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/.
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 =
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
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
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
.
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
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
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
39 matches
Mail list logo