Nessuno può rimuoverlo, devi fare fa solo mandanfo una mail vuota a
rubyonrails-talk+unsubscr...@googlegroups.com
In automatico sarai rimosso dal gruppo.
Ciao Mauro
Il sab 11 ago 2018, 17:14 Mauro Sanna ha scritto:
> Would you unsubscribe me?
>
> On Fri, 10 Aug 2018 at 22:45, Mugure
Would you unsubscribe me?
On Fri, 10 Aug 2018 at 22:45, Mugurel Chirica
wrote:
> Hey David, looks like you did not configure your application properly.
>
> What gem do you use for stripe, there should be a way for you to configure
> the app, have a look at the documentation.
>
> You will need to
Please delete me.
On Thu, 9 Aug 2018 at 19:25, Joe Guerra wrote:
>
>
>
>
>
>
>
>
> https://res.cloudinary.com/dlfodsgbd/image/upload/v1485912958/photo_not_available.png)
> ;">
>
> Saepe Delectus Consequatur
>
>
>
> Eius numquam optio corporis exercitationem eaque optio
>
>
> Active: 2
Please delete me.
On Wed, 8 Aug 2018 at 18:01, Hassan Schroeder
wrote:
> On Tue, Aug 7, 2018 at 9:39 PM, David Merrick
> wrote:
> > I want to know how I can successfully put this part of the
> > create method of the charges controller
> > into the users create method of the users controller
>
>
Ok I understand, sorry but I never need a thing such these so I can't help
you.
Mauro
Il 25 feb 2018 7:14 PM, "Robert Phillips" ha
scritto:
> No not the rails console!
>
> ERB stands for Embedded Ruby!
>
> You know when you do rails generate controller abc def
&g
rails console?
Il 25 feb 2018 6:46 PM, "Robert Phillips" ha
scritto:
>
>
> On Sunday, 25 February 2018 17:29:36 UTC, Hassan Schroeder wrote:
>>
>> On Sun, Feb 25, 2018 at 9:08 AM, Robert Phillips
>> wrote:
>>
>> > Is there a command line ERB?
>>
>> I suspect you're looking for "irb" -- Interact
org/.
> With more clarification about what you are planing to do i could be more
> helpful.
>
> ;)
>
> Em ter, 6 de fev de 2018 às 16:04, Mauro Sanna
> escreveu:
>
>> Scuse me for the OT.
>> Can you suggest a good videoconferencing open source product?
>>
>&
Scuse me for the OT.
Can you suggest a good videoconferencing open source product?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-talk+unsubs
Sorry I've seen now the word 'gems'
My instructions are to make override of scaffold generator.
Mauro
2018-01-26 13:06 GMT+01:00 Mauro Locatelli :
> Yes, you can
>
> *Model*
> project_folder/lib/templates/active_record/model/model.rb
>
> *Controller*
>
)
You can also add views editing scaffold_generator.rb
Cheers
Mauro
2018-01-26 12:52 GMT+01:00 fugee ohu :
> I can override any gem's controllers and views by creating them in my app?
>
> --
> You received this message because you are subscribed to the Google Groups
> "R
One Vim to rule them all
There is a world behind Vim+plugins
Here my plugin list v-ide <http://crivotz.github.io/v-ide/>
However Vim has a long learning curve, so if you do not have time Rubymine
may be the solution
Thanks,
Mauro
2015-06-16 13:47 GMT+02:00 Arch Albert :
> All th
On 5 February 2013 17:52, Greg Akins wrote:
> On Tue, Feb 5, 2013 at 10:59 AM, Mauro wrote:
>> grails
>
>
> Are you at the wrong group, or is that a typo?
Sorry it was a typo.
--
You received this message because you are subscribed to the Google Groups "Ruby
on
Hello.
There is someone interested to a collaboration in developing a project
to manage commercial activities?
The target is to learn more on grails and develop an useful application.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To uns
On 26 November 2012 23:28, Colin Law wrote:
> On 26 November 2012 22:23, Colin Law wrote:
>> On 26 November 2012 18:25, Mauro wrote:
>>> On 26 November 2012 15:43, Colin Law wrote:
>>>> On 26 November 2012 12:45, Mauro wrote:
>>>>> The test:
>&
On 26 November 2012 15:43, Colin Law wrote:
> On 26 November 2012 12:45, Mauro wrote:
>> The test:
>>
>> test "should get new" do
>> get :new, :room_id => @room.name
>> assert_template(:ne)
>> end
>>
>> the template new do
On 26 November 2012 13:49, Dheeraj Kumar wrote:
> Add render_views
>
> https://www.relishapp.com/rspec/rspec-rails/v/2-12/docs/controller-specs/render-views
Is it only for rspec?
I'm using unit testing.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to t
On 18 November 2012 21:24, Colin Law wrote:
> On 18 November 2012 19:42, Mauro wrote:
>> Hello.
>> I have this unit test:
>>
>> test "User validations" do
>> user = User.new
>> assert user.invalid?
>> assert user.errors[:uid].any?
>
Hello.
I have this unit test:
test "User validations" do
user = User.new
assert user.invalid?
assert user.errors[:uid].any?
assert user.errors[:name].any?
assert user.errors[:role].any?
end
When I run it I have this error:
null value in column "uid" violates not-null constraint: INSERT
On 14 November 2012 22:21, Colin Law wrote:
> On 14 November 2012 21:07, Mauro wrote:
>> I have a model Reservation with reserved_from and reserve_to
>> attributes of type date.
>> I want create a scope of all reservations where Date.today is between
>> reserved_from
I have a model Reservation with reserved_from and reserve_to
attributes of type date.
I want create a scope of all reservations where Date.today is between
reserved_from and reserved_to.
In the model I've done:
def self.today_reservation
find_each do |res|
if (Date.today).between?(res.
On 30 October 2012 12:16, Tommaso Visconti wrote:
> Il 30/10/12 12:12, Mauro ha scritto:
>
>> def update
>>
>>if @unsafe_building.update_attributes(params[:company])
>> format.html { redirect_to @unsafe_building, notice:
>> t('flash.
def update
if @unsafe_building.update_attributes(params[:company])
format.html { redirect_to @unsafe_building, notice:
t('flash.actions.update.notice') }
in it.yml locale file I have:
it:
flash:
actions:
create:
notice: "%{model} è stato creato con successo."
Hello.
I've installed cancan and bigbluebutton_rails,
https://github.com/mconf/bigbluebutton_rails.
The gem bigbluebutton_rails has some models and controllers, for
example has bigbluebutton/servers_controller.rb.
This controller has some actions like create, join, authorize, etc.
I want that only
On 22 September 2012 17:32, Hassan Schroeder wrote:
> On Sat, Sep 22, 2012 at 8:03 AM, Mauro wrote:
>
>> Yes I want to save in session but how can access the session?
>> user_session hash is empty.
>
> session["foo"] = "bar"
>
> Of course it'
On 22 September 2012 16:33, Hassan Schroeder wrote:
> On Sat, Sep 22, 2012 at 7:05 AM, Mauro wrote:
>
>>> The guest user signed in successfully, now its name is, for example,
>>> "guest" " guest".
>>> current_user.name is guest guest.
>>
On 21 September 2012 12:50, Mauro wrote:
> I'm using devise for authentication:
> In my user model I've do:
>
> def name
> "#{first_name} #{last_name}"
> end
>
> to have a name method.
> After signed in successfully I can use current_user.name.
&
On 21 September 2012 13:16, Mauro wrote:
> On 21 September 2012 13:07, avinash behera wrote:
>> Will there be any affect on ruby code if we change from ruby to jruby ?
>
> I think no, you have to control your gems, if you use jruby you have to add:
>
> # the javascript
On 21 September 2012 13:07, avinash behera wrote:
> Will there be any affect on ruby code if we change from ruby to jruby ?
I think no, you have to control your gems, if you use jruby you have to add:
# the javascript engine for execjs gem
platforms :jruby do
group :assets do
gem 'therubyr
On 21 September 2012 10:47, Avi wrote:
> Hello,
>
> Currently in my rails application, I am using ruby 1.9.3. There is a
> requirement for which I need to use jruby.
> If I am using jruby, then I can't use ruby.
> Will there be any affect if I switch from ruby to jruby in my application ?
> Will
I'm using devise for authentication:
In my user model I've do:
def name
"#{first_name} #{last_name}"
end
to have a name method.
After signed in successfully I can use current_user.name.
I want to overwrite name method if the user is guest.
That's the use case:
The guest user signed in succes
I'm trying to find an effective way to validate the following:
I have 3 form fields, a select menu a checkbox and a textfield. They can
all be left blank on submission, but if you select two or more it
should prompt an error. If the user chooses to, only one field should
be allowed to be submitt
On 31 May 2012 12:38, Colin Law wrote:
> On 31 May 2012 09:40, Mauro wrote:
>> Hello.
>> I need an advice to find a solution on creating a new has_many
>> :through association on a existing model.
>> I have:
>>
>> Company
>> has_many :managements,
Hello.
I need an advice to find a solution on creating a new has_many
:through association on a existing model.
I have:
Company
has_many :managements, :dependent => :destroy
has_many :managers, :through => :managements
Manager
has_many :managements, :dependent => :destroy
has_many :compan
I've noticed that if I use associations with has_many_and_belongs_to
and i call a destroy method on an object of the association, the
record in the join table is automatically deleted.
If I use has_many :though, for example:
Category
has_many :categorizations
has_many :products, :through => :categ
I have:
Manager
has_many :companies
has_many :profiles
Company
has_many :managers
Profile
has_many :managers
I want to assign on or more profiles to every Manager-Company
I'm trying:
Manager
has_many :managements
has_many :companies, :through => :managements
has_many :profiles, :through => :ma
Thanks mate, good news.
--
Mauro Locatelli
Il giorno giovedì 17 maggio 2012, alle ore 15:25, Guilherme Dutra ha scritto:
> So many courses in CodeSchool will be free in this weekend, enjoy!
>
> http://www.codeschool.com/free-weekend
>
> --
> Atenciosamente,
&
Tell me if this is correct:
I have a Shop, a Bar and OtherShop.
Everyone have a Category.
So I can create a polymorphic association:
Shop has_many :categories, :as => categorization
Bar has_many :categories, :as => categorization
OtherShop has_many :categories, :as => categorization
Category be
On 11 May 2012 09:12, Mauro wrote:
> Sorry for my ignorance, in your example have you forgot Activity model
> and activities table?
ok, sorry they don't need.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To pos
Sorry for my ignorance, in your example have you forgot Activity model
and activities table?
On 10 May 2012 17:37, Jeremy Walker wrote:
>
>
> On 10 May 2012 16:26, Mauro wrote:
>>
>> On 10 May 2012 17:05, Greg Akins wrote:
>> >
>> >
>> >
On 10 May 2012 17:05, Greg Akins wrote:
>
>
> On Thu, May 10, 2012 at 10:57 AM, Mauro wrote:
>>
>> I have problems on a simple design problem.
>> I have many companies. Each company have one or more commercial activity.
>> Activities types are: ecommerce,
On 10 May 2012 16:20, Colin Law wrote:
> On 10 May 2012 15:11, beau trepp wrote:
>> I'll try installing an older version of ruby then. Seems odd, I use RVM, and
>> I generally aim for stable so wasn't expecting that to happen.
>
> I don't quite understand what you are saying here. Do you mean th
I have problems on a simple design problem.
I have many companies. Each company have one or more commercial activity.
Activities types are: ecommerce, local unit, television, automatic
vending machines, and so on.
Company may have one or more ecommerce activity or one or more local
unit activity, o
Hello, there is someone that use mongodb in developing rails applications?
I've used for years only postgresql.
Now I'm reading some docs about mongodb as the new db generation.
I have an application with many companies.
One company has many shops and I must track the life history of every
shop, fo
On 3 May 2012 16:41, Jeremy Walker wrote:
>
>
> On 3 May 2012 15:28, Mauro wrote:
>>
>> Hello.
>> I've read about examples on inheritance with rails.
>> Here is an example:
>>
>>
>> http://juixe.com/techknow/index.php/2006/06/03/rails-
Hello.
I've read about examples on inheritance with rails.
Here is an example:
http://juixe.com/techknow/index.php/2006/06/03/rails-single-table-inheritance/
The way is to add a type field in the table.
So if I have an Animal class with an attribute name, I can inherit
from this class like:
Dog
On 17 April 2012 13:35, Draiken wrote:
> I think you're just not adding the callback before the submit.
>
> When you submit and you don't have the callback set, the callback will
> obviously never get called.
>
> Try this:
> $(document).on "click", "#document_template_session_btn", ->
> $("#do
On 15 April 2012 19:00, Mauro wrote:
> On 15 April 2012 15:33, Paul wrote:
>> Just a wild guess, but are you returning valid json from the server?
>> I've seen that when I have a syntax error in my returned json.
>
> Sorry for my ignorance.
> I
on't submit the second form and doesn't run if I
submit also the second form?
>
> On Sat, Apr 14, 2012 at 6:48 AM, Mauro wrote:
>> I have:
>>
>> = form_tag document_template_sessions_path, :id =>
>> "document_template_session_frm"
I have:
= form_tag document_template_sessions_path, :id =>
"document_template_session_frm", :remote => true do
In the controller I have:
class DocumentTemplateSessionsController < ApplicationController
def create
session[:document] = Hash.new
session[:document][:prot_n]
https://github.com/josevalim/inherited_resources
read the deprecation notes in the README.
On 14 March 2012 02:51, Bruno Coelho wrote:
>
> On Tue, Mar 13, 2012 at 5:50 AM, Mauro wrote:
>>
>> Someone use or had used inherited_resource gem?
>> I find it very userful to n
Someone use or had used inherited_resource gem?
I find it very userful to not repeat code in simple crud applications.
The maintainer said that the gem is no longer maintained.
Using helpers like resource or collection, or collection_url, etc.
saved me to duplicate code.
What solution do you adopt
On 23 February 2012 15:22, Robert Walker wrote:
> Msan Msan wrote in post #1048192:
>> My clients asking me the possibility to create every time new
>> documents, just like using text editors like word or others.
>> My application create a document model based on data inserted in a
>> form, obviou
My clients asking me the possibility to create every time new
documents, just like using text editors like word or others.
My application create a document model based on data inserted in a
form, obviously this is a static document that the user can print.
But the user wants to edit the document in
On 13 February 2012 03:11, Everaldo Gomes wrote:
>
> because I didn't understand very well what are you doing.
I'm trying to do:
in route.rb I have: match "/:layout" => "companies#index"
Then when I call localhost/intraOp ther params[:layout] is "intraOp",
when I call localhost/interOp the para
> @current_layout is nil but authenticate_user! in companies_controller
> is skipped despite :unless => lambda {@current_layout.nil?}
Perhaps skip_filter does not accept conditionals unless or if?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk"
> Well put in some debug and prove it one way or the other.
Then:
application_controller:
before_filter :set_layout, :authenticate_user! #(authenticate_user is
from devise gem)
def set_layout
if params[:current_layout] == "intraOp"
session[:current_layout] = :intra
elsif params[:
On 12 February 2012 12:14, Colin Law wrote:
> On 11 February 2012 23:46, Mauro wrote:
>> route.rb
>>
>> match "/:layout" => "company@index"
>>
>> in application_controller I have:
>>
>> before_filter :authenticate_user!
&g
On 12 February 2012 18:59, Matt Jones wrote:
>
>> skip_filter :authenticate_user!, :only => [:index, :show] unless
>> @current_layout.nil?
>>
>> unless condition seem does not work.
>> What I am missing?
>
> The unless will run at class-definition time, not on each request. It
> also runs in the c
On 12 February 2012 12:14, Colin Law wrote:
> On 11 February 2012 23:46, Mauro wrote:
>> route.rb
>>
>> match "/:layout" => "company@index"
>>
>> in application_controller I have:
>>
>> before_filter :authenticate_user!
&g
On 12 February 2012 02:32, Mike Kim wrote:
>> skip_filter :authenticate_user!, :only => [:index, :show] unless
>> @current_layout.nil?
>
> I'm guessing that the unless statement is being parsed as an argument
> to skip_filter. Try using parentheses like this:
>
> skip_filter(:authenticate_user!, :
route.rb
match "/:layout" => "company@index"
in application_controller I have:
before_filter :authenticate_user!
rescue_from DeviseLdapAuthenticatable::LdapException do |exception|
render :text => exception, :status => 500
end
protect_from_forgery
before_filter :set_layout
layout :speci
I'm using the gem bootstrap-will_paginate and inside this gem there is
the initializer:
require 'will_paginate/view_helpers/action_view'
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options, collection = collection, nil if collection.is_a? Hash
Hello.
'm banging with a difficult problem I think.
I have a form like this:
- @company.categorizations.each do |categorization|
%tr
= f.semantic_fields_for :categorizations, categorization do |cat|
%td
%b= categorization.category.name
%td
I've found nothing about the method in subject.
If, for a has_many :though => managements association I do:
Model.new.methods.grep(/management/)
I see some methods like:
:after_remove_for_managements, :before_add_for_managements=,
:before_add_for_managements
and others similar.
What those metho
I have:
class Company < ActiveRecord::Base
has_many :categorizations
has_many :categories, :through => :categorizations
rails c
irb(main):003:0> comp=Company.find 1
Company Load (2.0ms) SELECT "companies".* FROM "companies" WHERE
"companies"."id" = 1 LIMIT 1
=> #
rb(main):004:0> comp.
> Categorization has two extra attributes, :classification_id and :amount.
> Now I want to assign a value to classification_type when I create a new
> company.
I mean classification_id and not classification_type.
--
You received this message because you are subscribed to the Google Groups "Rub
pe when I create a new company.
In the controller I've done:
def create
@company = Company.new(params[:company])
@company.categorizations.build(:classification_id =>
params[:company][:classification])
but it creates two categorizations:
[#, #].
On 15 January 2012 22:46, Mauro
> And sorry to the list for the large volume of posts about this case.
No no it's my ignorance, you have helped me a lot, I've solved a
problem that I had for months.
Really thanks a lot.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
T
On 15 January 2012 22:21, Peter Vandenabeele wrote:
> On Sun, Jan 15, 2012 at 10:15 PM, Mauro wrote:
>>
>> On 15 January 2012 22:11, Peter Vandenabeele
>> wrote:
>> > On Sun, Jan 15, 2012 at 10:03 PM, Mauro wrote:
>> >>
>> >> This
On 15 January 2012 22:11, Peter Vandenabeele wrote:
> On Sun, Jan 15, 2012 at 10:03 PM, Mauro wrote:
>>
>> This seems to work:
>>
>> def new
>> @company = Company.find(params[:company_id])
>> @manager = Manager.new
>> @manager.managements.
This seems to work:
def new
@company = Company.find(params[:company_id])
@manager = Manager.new
@manager.managements.build
new!
end
def create
@company = Company.find(params[:company_id])
@manager = Manager.new(params[:manager])
@manager.managements.build(:role=>pa
On 15 January 2012 21:49, Peter Vandenabeele wrote:
> On Sun, Jan 15, 2012 at 9:43 PM, Mauro wrote:
>>
>> I didn't knew :inverse_of, now I read something about it.
>> But I can I set now the controller actions new and create?
>> This code creates two managers
Yes you're right, it works also without :inverse_of, sorry for my mistake.
But I can't do it work using the manager form.
Can you help me for another little piece?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, sen
I didn't knew :inverse_of, now I read something about it.
But I can I set now the controller actions new and create?
This code creates two managers and not only one:
def new
@company = Company.find(params[:company_id])
@manager = Manager.new
@manager.managements.build
new!
end
On 15 January 2012 21:01, Peter Vandenabeele wrote:
> On Sun, Jan 15, 2012 at 8:13 PM, Mauro wrote:
>>
>> On 15 January 2012 19:58, Peter Vandenabeele
>> wrote:
>> > puts @management.manager
>>
>> puts @management.manager
>>
>> => nil
On 15 January 2012 19:58, Peter Vandenabeele wrote:
> puts @management.manager
puts @management.manager
=> nil
> puts @manager.company
It is @manager.companies:
irb(main):019:0> puts @manager.companies
[]
=> nil
> puts @manager.role
puts @management.role
Big chief
--
You received this me
On 15 January 2012 19:33, Peter Vandenabeele wrote:
> On Sun, Jan 15, 2012 at 7:25 PM, Mauro wrote:
>>
>> On 15 January 2012 17:54, Peter Vandenabeele
>> wrote:
>>
>> >> I want to assign a role to Management at the same time I create a new
>> >&
On 15 January 2012 17:54, Peter Vandenabeele wrote:
>> I want to assign a role to Management at the same time I create a new
>> Manager.
>
>
> I understand, but I was unable to find a solution that does it in 1 time...
And tha'ts my problem, reading other posts in internet it seems impossible.
P
You have created and saved a Manager.
This create automatically a new Management and it is correct, but with
role => nil.
I want to assign a role to Management at the same time I create a new Manager.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Ta
Here are params:
{"utf8"=>"✓",
"authenticity_token"=>"RpOtdQMIm6B45/e91h6ljXKpMCtRD//QJ+bP4knrcic=",
"manager"=>{"name"=>"q", "surname"=>"",
"fiscal_code"=>"1121", "city"=>"", "zip_code"=>"",
"address"=>"", "street_number"=>"", "tel"=>"", "email"=>""},
"commit"=>"Crea Amministratore",
If in the controller I put: (I'm using inherited resources)
like you sugggest
def new
@company = Company.find(params[:company_id])
new!
end
def create
puts params.inspect
@company = Company.find(params[:company_id])
@manager = @company.managers.build(params[:manager])
Scuse me but, as the subject says, I'm not be able to set an extra
attribute of a join model.
Situation is:
class Company < ActiveRecord::Base
has_many :managements
has_many :managers, :through => :managements
class Manager < ActiveRecord::Base
has_many :managements
has_many :companies, :thro
> Did you remove the line
>
> accepts_nested_attributes_for :managers
perhaps it's my mistake, sorry.
Company.new.grep(/manager/)
[:before_remove_for_managers=, :after_remove_for_managers,
:after_add_for_managers?, :autosave_associated_records_for_managers,
:manager_ids=, :after_remove_for_mana
But now I have a question:
if I do semantic_fields:_for :manager
without doing @company.managers.build
I see the manager form.
Why I see the manager form?
Do fields_for :manager call the manager controller?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
On 10 January 2012 12:15, Peter Vandenabeele wrote:
> On Tue, Jan 10, 2012 at 11:33 AM, Mauro wrote:
>>
>> I have:
>>
>> class Company < ActiveRecord::Base
>> has_many :categorizations
>> has_many :categories, :through => :categorizations
>
I have:
class Company < ActiveRecord::Base
has_many :categorizations
has_many :categories, :through => :categorizations
has_many :managements
has_many :managers, :through => :managements
has_many :tenders
has_many :documents, :dependent => :destroy
accepts_nested_attributes_for :man
On 6 January 2012 10:23, Brynjolfur Thorvardsson wrote:
> Hi again - I've got a fully dynamic css setup which includes using a css
> controller. That way you get the option of passing variables to your css
> from Rails, basically you can enable full programmatic control of your
> stylesheets.
On 6 January 2012 08:09, Brynjolfur Thorvardsson wrote:
> Well, the easiest way would be to simply remove the files you don't want to
> use?
No, I need them for another layout in the same application.
>
> You might also try using a dynamic css, if you rename your application.css to
> applicatio
On 5 January 2012 18:24, Ralph Shnelvar wrote:
> Thursday, January 5, 2012, 9:25:03 AM, you wrote:
>
> M> In my assets I have
>
> M> intranet
> M> |_1.css.scss
> M> |_2.css.scss
> M> internet
> M> |_1.css.csss
> M> application.css
> M> application_internet.css
> M> application_intranet.css
>
In my assets I have
intranet
|_1.css.scss
|_2.css.scss
internet
|_1.css.csss
application.css
application_internet.css
application_intranet.css
1.css.scss
2.css.scss
3.css.scss
intranet and internet are directories.
In my layout I want to exclude the files under internet and intranet.
I have
Someone use compass?
Reading the docs, to use compass in a rails3 application I must run
"compass init rails /path/to/myrailsproject --using blueprint" (I want
to use blueprint).
But with asset pipeline I think it not necessary.
I've created a blueprint.css.scss file and put
@import "blueprint/res
I'm using simple-navigation but I want try other solutions, for
example with jquery.
What do you use for navigation menus with one or more levels?
--
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 rubyon
I've spent a lot of time trying to create a new model and, at the same
time, setting an attribute of the join model.
I have:
Company
has_many :managements
has_many :managers, :through => :managements
Manager
has_many :managements
has_many :companies, :through => :managements
Then I try to create
In a has_many :through association the join model is automatically created.
But...how the parameters are passed to the model?
For example, if I have
Model1
has_many :models
has_many :models2, through => :models
and
Model2
has_many :models
has_many :model1, through => :models
The join model is Mo
On 27 December 2011 02:45, Bruno Meira wrote:
> Hi Marco,
> If I understand your question, Do you want to fill in one form many models.
> Am I right?
Yes but one of the models is the join model of a has_many :through relation.
Company has_many :categories, :though => :categorizations
Classificati
On 26 December 2011 19:36, Bruno Meira wrote:
> Hey,
> Take a look at fields_for helper. This helper might help you.
> :D
Sorry for my ignorance, I'm trying but I don't see the way fields_for can help.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
On 26 December 2011 03:14, Jim Ruther Nill wrote:
>
>
> On Mon, Dec 26, 2011 at 7:50 AM, Samir Selman
> wrote:
>>
>> Try looking into nested forms
>>
>>
>> On Sun, Dec 25, 2011 at 12:49 PM, Mauro wrote:
>>>
>>> The models are:
The models are:
Company
has_many :categorizations
has_many :categories, :through => :categorizations
Category
has_many :categorizations
has_many :companies, :through => :categorizations
Classification
has_many :categorizations
Categorization
belongs_to :company
belongs_to :categor
On 25 December 2011 16:13, Alex Mercer wrote:
> Seems on `bundle update` bundler trying to update all dependencies for
> all listed gems in Gemfile.
> So maybe it's hangs up on some specific gem. Try to update only gems
> that you need(e.g. `bundle update rails`).
You are right.
The problematic g
1 - 100 of 424 matches
Mail list logo