On 21 Oct 2011, at 02:45, Roy Situmorang wrote:
Well, the deployed files are only those included in repository.
On Fri, Oct 21, 2011 at 5:35 AM, Erwin wrote:
Testing locally I uploaded files into public/system/... folders
( default for Paperclip)
Upon deployment ( capistrano) on the remote se
But if you handle the pagination client sided and have a table with a
bazillion of entries then all the entries will be downloaded to the client
bit your client will probably never go beyond the first couple of pages.
Just think of this in a mail application where you are viewing a folder with
10k
Klaus Fuchs wrote in post #1027695:
> Is it possible to identify if someone is connecting my rails app through
> the internet or an intranet?
> I would like to enable web access only to a couple of users, others
> should be able to login only when inside their intranet.
Check the request object. S
Is it possible to identify if someone is connecting my rails app through
the internet or an intranet?
I would like to enable web access only to a couple of users, others
should be able to login only when inside their intranet.
Thanks,
Klaus
--
Posted via http://www.ruby-forum.com/.
--
You recei
I'm having this issue as well. Any thoughts on what the conflict is?
--
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 un
Well, the deployed files are only those included in repository.
On Fri, Oct 21, 2011 at 5:35 AM, Erwin wrote:
> Testing locally I uploaded files into public/system/... folders
> ( default for Paperclip)
> Upon deployment ( capistrano) on the remote server, I can see a
> symlink from public/sys
Testing locally I uploaded files into public/system/... folders
( default for Paperclip)
Upon deployment ( capistrano) on the remote server, I can see a
symlink from public/system to the shared/system/ but the content
( all images ) is not transferred I had to do it myself via
ftp ..
Is i
On Oct 20, 2011, at 12:23 PM, Colin Law wrote:
> On 20 October 2011 18:14, Robert Walker wrote:
>> Peter Hicks wrote in post #1027558:
>>> I have some data that could be a combination of around 30 values.
>>> Typical
>>> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil.
>>>
>>> Id
Thanks, I think that is what I'm looking for!
--
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 this gro
I think what you're looking for is "delegate" which is a rails extension to
Module:
http://api.rubyonrails.org/classes/Module.html#method-i-delegate
class ModelC < ActiveRecord::Base
has_many :model_a
end
class ModelA < ActiveRecord::Base
belongs_to :model_c
delegate :version, :to => :mod
On 20 October 2011 18:14, Robert Walker wrote:
> Peter Hicks wrote in post #1027558:
>> I have some data that could be a combination of around 30 values.
>> Typical
>> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil.
>>
>> Ideally, I'd use the SET data type in PostgreSQL, but Active
So, I have 2 models A and B that share 5 common attributes and all other
attributes are different. So I wanted to extract these 5 out into one
common table and use has_one, belongs_to to knit it back together. So
now there are 3 tables with 1 having the shared properties, we'll call
this table C.
Peter Hicks wrote in post #1027558:
> I have some data that could be a combination of around 30 values.
> Typical
> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil.
>
> Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord
> doesn't
> appear to support[1] this. More spe
Hi everyone and sorry to bother you, but I've got a great Ruby / Rails
Developer seeking full time work in New York City. If anyone would
like to see his resume, please email me at opensourcestaffing\AT
\gmail.com
--
You received this message because you are subscribed to the Google Groups "Ruby
Great!!!
Thanks for your help
On 19 oct, 21:44, Walter Lee Davis wrote:
> On Oct 19, 2011, at 4:14 PM, Angelo Cordova wrote:
>
>
>
>
>
>
>
>
>
>
>
> > Hello everyone.
>
> > I have a form in my ruby 1.9.2 rails 3.0.9 app, and one of the fields
> > is a "collection select" like this
>
> >
> > <%=
On Thu, Oct 20, 2011 at 8:20 AM, genterminl
wrote:
> Tim,
>
> Thanks. That looks like exactly what I need to get started. I'm simply not
> familiar enough yet with ruby or rails to have come up with that from
> scratch myself, but I can certainly use it and modify it to handle the
> naming conve
try this AllowOverride None
and put index.html in this dir /home/railsapps/rails_3/depot/public/
then access index.html page
On Oct 20, 9:17 pm, akkdio wrote:
> Appreciate any help -
>
> I am working through Agile web development (4.0) and am stuck on the
> deployment using phusion passenger. I
Tim,
Thanks. That looks like exactly what I need to get started. I'm simply not
familiar enough yet with ruby or rails to have come up with that from
scratch myself, but I can certainly use it and modify it to handle the
naming conventions in my existing schema. Now I have to go back to wo
On 20 October 2011 15:53, Peter Hicks wrote:
> On Thu, Oct 20, 2011 at 01:24:24PM +0100, Colin Law wrote:
>
>> In any case you should not worry about efficiency at this stage.
>> Start with the most straight forward design and *if* performance
>> becomes an issue then optimise it later. I can vir
On Oct 19, 2:22 pm, mdfdroid wrote:
> Ok so I solved my problem by creating two divs on the page. A table
> on the left that is paginated and has ajax search for assigning
> issues. Then another table on the right that just shows assigned
> issues. I have jquery watch for check box clicks and
Well you don't exactly have to do it by *hand*. It's pretty easy to write a
script to generate the command for you. Just change table_name to whatever
your model is...
table_name = "Post"
output = [ "rails g scaffold #{table_name} --skip-migration" ]
ignore_columns = [ 'id', 'created_at', 'updat
Okay I managed to install cucumber but faced another problem when i
tried to install cucumber-rails. My cmd shows:
C:\Users\Mathew>gem install cucumber-rails
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing cucumber-r
Have you tried http://railsinstaller.org/?
I used that on windows, but I prefer rails on ubuntu maybe in the future
I'll buy a mac :D
On Thu, Oct 20, 2011 at 8:29 AM, Luis Lavena wrote:
> On Oct 20, 2:23 pm, Mathew Birch wrote:
> > Hi to all,
> >
> > I have managed to install many gems but
On Oct 20, 2:23 pm, Mathew Birch wrote:
> Hi to all,
>
> I have managed to install many gems but cant seem to be able to install
> Cucumer. It produces the error that system cannot find the path
> specified. I am using Ruby 1.9.2 on windows 7. I tried installing
> gherkin and the same error occurr
Appreciate any help -
I am working through Agile web development (4.0) and am stuck on the
deployment using phusion passenger. I get this:
"Forbidden
You don't have permission to access / on this server."
when I put depot.yourhost.com in the browser.
I have been through various web searches
Colin Law wrote in post #1027583:
>
> Ah, you are on Windows, sorry I don't know then. Someone else?
>
> By the way, rails development is much easier on Ubuntu (or similar) or
> Mac.
>
> Colin
I tried using ubuntu as its also installed on my computer but i couldn't
get the rails server running p
On 20 October 2011 13:50, Mathew Birch wrote:
> C:\Users\Mathew\Downloads>gem install gherkin
> Temporarily enhancing PATH to include DevKit...
> Building native extensions. This could take a while...
> The system cannot find the path specified.
> ERROR: Error installing gherkin:
> ERROR:
C:\Users\Mathew\Downloads>gem install gherkin
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
The system cannot find the path specified.
ERROR: Error installing gherkin:
ERROR: Failed to build gem native extension.
C:/Ruby192
On 20 October 2011 13:23, Mathew Birch wrote:
> Hi to all,
>
> I have managed to install many gems but cant seem to be able to install
> Cucumer. It produces the error that system cannot find the path
> specified. I am using Ruby 1.9.2 on windows 7. I tried installing
> gherkin and the same error
On Oct 18, 8:55 pm, Dale Ackerman wrote:
> I have a situation where I have some legacy tables that have what I
> will call conditional relations. One table is a log and has actions
> and action_notes columns if the action is a certain number(value) the
> the contents of the action_notes will be
On 20 October 2011 11:46, Peter Hicks wrote:
> All,
>
> I have some data that could be a combination of around 30 values. Typical
> values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil.
>
> Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord doesn't
> appear to support[1]
Hi to all,
I have managed to install many gems but cant seem to be able to install
Cucumer. It produces the error that system cannot find the path
specified. I am using Ruby 1.9.2 on windows 7. I tried installing
gherkin and the same error occurred. I managed to install other gems
such as rails,
rspec-core 2.7.1 is released!
### rspec-core-2.7.1 / 2011-10-20
[full changelog](http://github.com/rspec/rspec-core/compare/v2.7.0...v2.7.1)
* Bug fixes
* tell autotest the correct place to find the rspec executable
--
You received this message because you are subscribed to the Google Groups
Thanks all. This problem is solved.
Regards
Tsolmon
, Leoncio Caminha wrote:
> thats right its a gem versiion problem, downgrade it
>
> Enviado via iPad
>
> Em 20/10/2011, às 07:04, Gautam Rege escreveu:
>
> Just upgrade to the latest edge Rails version to anything >= v2.3.10. This
> solves th
Thank you Fred for another reply.
But having relationship report->question->answer will lead to
unnecessary generation of the question per each report. In my case,
question is same for all reports.
Could you please guide me what I should do then?
I feel like I'm stuck in db model now.
Your adv
All,
I have some data that could be a combination of around 30 values. Typical
values could be 'TB', 'TF', 'D', 'U', '-D', 'OP', 'RM', or nil.
Ideally, I'd use the SET data type in PostgreSQL, but ActiveRecord doesn't
appear to support[1] this. More specifically, I can run a migration on my
dev
thats right its a gem versiion problem, downgrade it
Enviado via iPad
Em 20/10/2011, às 07:04, Gautam Rege escreveu:
> Just upgrade to the latest edge Rails version to anything >= v2.3.10. This
> solves the problem. (There is a 'threads' dependency in the stack which
> causes this error).
>
Just upgrade to the latest edge Rails version to anything >= v2.3.10. This
solves the problem. (There is a 'threads' dependency in the stack which
causes this error).
If you cannot upgrade your Rails version, you would need to downgrade the
gem version.
Cheers!
- Gautam
On Thu, Oct 20, 2011 at 2
Sorry .
My gem list is.
--
abstract (1.0.0)
actionmailer (3.0.9, 2.3.5)
actionpack (3.0.9, 2.3.5)
activemodel (3.0.9)
activerecord (3.0.9, 2.3.5)
activeresource (3.0.9, 2.3.5)
activesupport (3.0.9, 2.3.5)
arel (2.0.10)
Ascii85 (1.0.1)
bcrypt-ruby (3.0.0)
builder (3.0.0,
On Oct 20, 3:32 am, Hakjune Kim wrote:
>
> def new
> ...
>
> QuestionSingle.each do |qs|
> report.answer_singles.build ...
> end
>
> so answer_single generated as many as questions.
>
> So when I call answer_singles in the fields for it calls every
> answer_singles generated.
>
>
> <
On Oct 19, 4:16 pm, genterminl
wrote:
> The whole point is I have lots of tables with lots of columns, and I don't
> want to have to do all that typing. The magic_model_generator creates all
> the model files, and it can obviously see all the columns in the database,
> I'm just surprised that n
On Oct 19, 12:01 pm, Tsolmon Narantsogt wrote:
> Hello everybody.
>
> I just upgrade my gem version 1.37 to 1.8.11. Then i run my project and got
> a this error.
>
> START Error
> -
> Invalid gemspec in
> [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date
> form
Ruby event on November 3, 2011 at MacKenzie Room, Stanford University.
Program will include, 1) keynote speeches by Yukihiro “Matz” Matsumoto
and Derek Collison, CTO, VMware Inc. and 2)Silicon Valley Ruby
Innovator Award Competition, a preliminary competition for the 2012
Fukuoka Ruby Award.
Plea
I got solution
we need to add below code in your header javascript, which tells use
browser cookie in server externally
###
$(document).ajaxSend(function(e, xhr, options) {
var token = $("meta[name='csrf-token']").attr("content");
xhr.setRequestHeade
44 matches
Mail list logo