tioned, but it's a very
# dangerous method. Be careful!
eval(
# Array#combination is what does the trick for you. Check it out:
# https://ruby-doc.org/core-2.6.1/Array.html#method-i-combination
# The other lines just help on building the condition Stri
ge to keep your front end sound.
Hope it helps.
/ Marco
On Thu, May 3, 2018 at 4:06 PM fugee ohu wrote:
> I'm working on an auctions site My app doesn't yet have a user dashboard
> so I'm thinking app/views/user/dashboard or app/views/user/admin and same
> thing f
help you to go through that.
Kind regards,
// Marco
On Tue, Mar 27, 2018 at 11:48 PM Brian Postow wrote:
> by "not references" I meant it's way too verbose for what I need. The
> rails guides are meant (or appear to be meant) to be read cover to cover. I
> need somethin
nses, baseline: [:project, :coordinator])
However, I need to have more information on the database schema to have a
better insight. It could also be that you have a many to many relationship
between projects and investments and you would need other setup for that,
but it depends on how the fields are setup.
27;t work.
rake rails:update:bin or rails app:update:bin if you're on Rails 5.
Hope it works.
Kind regards,
/ Marco
On Mon, Feb 6, 2017 at 10:41 AM hartmut bischoff
wrote:
Hi everbody,
I am working on a Rails Project using OrientDB as Database (
https://github.com/topofocus/acti
Hi Rynn,
On Mon, Jun 6, 2016 at 12:15 AM Rynn Steinbolt wrote:
> Hi folks!
>
> Im currently trying to generate diagrams with a js lib and rails. It
> doesn't work, though, since I can't figure out how to embed ruby code to
> supply the diagrams with data. My editor highlights the ruby code
> wei
ine Tools (OS X 10.11) for Xcode 7.1".
Hope it works,
Marco
On Fri, Dec 4, 2015 at 2:55 PM Yuri Redaelli wrote:
> Hi all,
>
> for first sorry for my english.
>
> Recently I've updated my Mac to El Capitan and re-installed (with
> Homebrew) ImageMagick 6.9.2-7
>
>
On Fri, Nov 6, 2015 at 10:03 AM Colin Law wrote:
> On 5 November 2015 at 23:17, wbsurf...@yahoo.com
> wrote:
> >
> > instead of this:
> >
> > def rqstate
> >self.quote_request.status rescue "unsubmitted"
> > end
> >
> > I'm going for this, though maybe there is a good one liner I overlooked
On Tue, Oct 6, 2015 at 4:55 PM Colin Law wrote:
> On 6 October 2015 at 15:50, Emrah Yıldırım
> wrote:
> >
> >
> > 6 Ekim 2015 Salı 17:30:46 UTC+3 tarihinde Colin Law yazdı:
> >>
> >> On 6 October 2015 at 15:23, Emrah Yıldırım wrote:
> >> >
> >> > Hi, this figure should be based on how the contr
#x27;t auto require other gems.
So to fix it, you need to require 'gon' in your gem (probably in your
lib/your_gem_name.rb file).
A good example is Devise:
https://github.com/plataformatec/devise/blob/master/lib/devise.rb. They do
also a lot of stuff in between, but you can see the that ir
On Thu, Sep 24, 2015 at 4:18 PM Marco Antonio Almeida
wrote:
> Hi Colin,
>
> On Thu, Sep 24, 2015 at 1:30 PM Colin Law wrote:
>
>> I am having a go, for the first time, at making a gem which is an
>> engine. I have some javascript files which I have put in the
>>
an call
// require my_engine
This is actually a very neat trick that Rails have to load files inside a
folder. It will always look for an index.js file first.
I hope this helps,
// Marco
Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rub
Hi Leandro,
I would go for two controllers here. A CustomersController and a
SuppliersController. You would just need to handle the Party model
appropriately in each one of those controllers.
Best regards,
// Marco
On Sat, Aug 22, 2015 at 10:59 PM Leandro França <
leandroayresfra...@gmail.
To' number 41798352547 is not a valid
phone number.
But as you can see, the number printed in the log is right, and I was doing
quite the same when I was using the method in User.rb (it was sending SMS
then, but only to one user).
Don't know what to do.
Le vendredi 24 juillet 201
e create a
SMSController. The thing is I don't know how to access a method of a
Controller from outside.
Le vendredi 24 juillet 2015 01:13:58 UTC+2, thiagocifani a écrit :
>
> Hello Marco, as you can see, you can send email or sms in the same way.
> The only thing you can do to avoid repetit
I want send an SMS each 5 minutes to my users. At the moment, my
application sends an SMS during the creation of an account.
# users_controller.rb
def create
@user = User.new(user_params)
if @user.save
@user.send_activation_email
@user.send_da
f the project is put on a
server ?
Le mardi 7 juillet 2015 11:30:05 UTC+2, Colin Law a écrit :
>
> On 7 July 2015 at 10:18, Marco Dias >
> wrote:
> > It doesn't seem to work in development mode. How can I do that ?
>
> By specifying RAILS_ENV=development in your
erver ?
Le mardi 7 juillet 2015 11:18:16 UTC+2, Marco Dias a écrit :
>
> It doesn't seem to work in development mode. How can I do that ?
>
> Le lundi 6 juillet 2015 20:56:42 UTC+2, Hassan Schroeder a écrit :
>>
>> On Mon, Jul 6, 2015 at 11:46 AM, Marco Dias wrote:
>&g
It doesn't seem to work in development mode. How can I do that ?
Le lundi 6 juillet 2015 20:56:42 UTC+2, Hassan Schroeder a écrit :
>
> On Mon, Jul 6, 2015 at 11:46 AM, Marco Dias > wrote:
>
> > So it sent mails to the only two users that had daily == true, so my
> me
e removed in Rails 5.
Use `#deliver_now` to deliver immediately or `#deliver_later` to deliver
through Active Job. (called from block (2 levels) in at
/Users/Marco/Documents/TBProject/lib/tasks/rake1.rake:5)
Rendered user_mailer/daily_mail.html.erb within layouts/mailer (1.2ms)
Rendered user_m
er"
end
The thing is, I don't know if I did right, and how can I test this, since
I'm not in development ?
I did a crontab -l and I get this :
# Begin Whenever generated tasks for: store
0 12 * * * /bin/bash -l -c 'cd /Users/Marco/Documents/TBProject &&
RAILS_E
I have a small PHP service that is being called in a JavaScript file by
AJAX :
$.ajax({
type: "GET",
url: "getDate.php",
dataType:"json",
data :{
fromDate:fromDate,
toDate:toDate
},
success: function(data) {
..
}
});
This service co
aterials' names.
Best regards,
Marco
On Mon, Mar 30, 2015 at 4:33 PM, Leandro França <
leandroayresfra...@gmail.com> wrote:
>
> Hey Marco,
>
> Thanks a lot for you quick response.
>
> So, I tried to change my models to use only *has_many* and *belongs_to*,
> instea
Now I see that you have the quantity inside your compositions table and you
probably need that.
You can use the code you have in your controller normally with the changes
mentioned in my last e-mail.
*Marco Almeida*
about.me/marcoafilho
+45 31 65 28 84
On Mon, Mar 30, 2015 at 3:53 PM, Marco
expect to have a relationship table named after the two models
in the plural. But in this case your compositions table is already the
relationship table.
Best regards,
Marco Almeida
On Mon, Mar 30, 2015 at 3:20 PM, Leandro França <
leandroayresfra...@gmail.com> wrote:
> Hi there,
>
>
mple to use and have nice features like template definition and
page breaks.
Best regards,
Marco
On Thu, Mar 26, 2015 at 10:52 AM, Colin Law wrote:
> On 26 March 2015 at 08:58, Ganesh Ranganathan
> wrote:
> >
> > On Thu, Mar 26, 2015 at 2:22 PM, Colin Law wrote:
> >>
&
ruby/1.9.1/rubygems/command.rb:307:in
`invoke_with_build_args'
/DBA/ruby/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:168:in
`process_args'
/DBA/ruby/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:138:in
`run'
/DBA/
t looks like a create action and your list a
index action, unless you have a good reason to do how you're doing.
Hope this helps.
Best regards,
*Marco Antonio Almeida*+45 31 65 28 84
Twitter: @marcoafilho <http://www.twitter.com/marcoafilho> | LinkedIn:
marco-antonio-almeida-filho
<http:/
I've updated the project ActiveLeonardo:
http://en-marcomastrodonato.blogspot.it/2014/03/activeleonardo-tutorial-create-rails4-app-ruby2-activeadmin.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk
Hi,
take a look on this link:
https://groups.google.com/forum/#!msg/rubyonrails-core/AWgxrpnnIcA/WBiQstLYwe0J
and use just:
@allow_concurrency = true
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk
assignment with:
job_types = ItServiceJob::TYPES.dup
Regards,
*Marco Antonio Almeida*+45 31 65 28 84
Twitter: @marcoafilho <http://www.twitter.com/marcoafilho> | LinkedIn:
marco-antonio-almeida-filho<http://www.linkedin.com/pub/marco-antonio-almeida-filho/53/399/3a2>
On Mon, Feb 3, 201
Hi Badal,
Have you tried installing the gem 'therubyracer'?
Put the line:
gem 'therubyracer'
in your Gemfile and execute bundle install on your console. Restart the
server and try again.
Best regards,
*Marco Antonio Almeida*+45 31 65 28 84
Twitter: @marcoafilho <
Hi Pablo,
This is an international list, so if you want your answer you should write
your question in English.
For this one I will answer your question in private.
*Marco Antonio Almeida*+45 31 65 28 84
Twitter: @marcoafilho <http://www.twitter.com/marcoafilho> | LinkedIn:
marco-a
Hello and sry for my english.
I have no idea what can i do with my problem. I hope everybody can help
me.
I have 4 Tables.
Table A
a_id
Table B
b_id
a_id
c_id
Table C
c_id
d_id
Table D
d_id
whit the table-association A 1--n B n--1 C n--1 D
In my View i have a f.select for the association A-
I get the same error, I solved with the 32bit version, ruby+devkit
--
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 unsubscribe from this group and stop receiving emails from it, send an email
ActiveRecord::RecordNotUnique in Admin::AdminUsersController#create
ODBC::Error: 23000 (2601) [unixODBC][FreeTDS][SQL Server]Cannot insert
duplicate key row in object 'dbo.admin_users' with unique index
'index_admin_users_on_reset_password_token'.: EXEC sp_executesql
N'INSERT INTO [admin_users]
uninitialized constant ReportsController::JasperServer
Can someone help me with this?
I'm sure I'm missing a require or something like that.
Thanks,
Marco
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
I would like to know what you think about my little work, any advice is
welcome, thanks
http://en-marcomastrodonato.blogspot.com/2012/02/leonardo-update-to-110-version.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "R
I would like to figure out how to *extend* an existing generator with
new class_option ecc. If i put the extension into lib/generators folder,
it replaces the original. Who can solve this doubt?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to
Hello,
does anybody know how can I test a controller in a Rails app (using
the Rails testing framework) that requires HTTP authentication, and
redirects after that?
With integration (I mean, using UserFlowsTest <
ActionController::IntegrationTest) tests I know I can
follow_redirect! , but I don't
Hi,
We are looking for Ruby on Rails developers for one of our clients in
USA. The idea is to create a team of 5 developers. We are also going
to start a training process with 2 – 3 developers to add them later to
the team.
This team should work in house in our office in San Jose, Costa Rica.
Le
On Thu, Apr 7, 2011 at 4:02 PM, Ar Chron wrote:
> Marco Antonio Filho wrote in post #991464:
> > Now comes the problem. I need to deploy these
> > changes
> > in the production servers. I already have the script to update the
> > changes,
> > but I don't
I would suggest you to make a first prototype app that jut works with
the core features you want. This prototype can have little or no front-
end work, and don't worry about tests yet. You do that to quickly
start to "see" your app, without spending efforts in details, and so
you can validate your
portant thing is that I would love to do some automated tests on
my script. How can I do that.
Many thanks in advance.
Best regards,
Marco Antonio
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, s
>
> On Mar 5, 9:03 am, marco wrote:
>
>
>
>
>
>
>
> > All right, but, before, why would you do that? I think if you really
> > need to use csv (eg. some legacy system), you would rather want to
> > read from the csv file, turn it into object and seri
All right, but, before, why would you do that? I think if you really
need to use csv (eg. some legacy system), you would rather want to
read from the csv file, turn it into object and serialize it with
JSON. In the other end you'd do the opposit. I don't think csv is a
good format to respond with,
-parameters.html
<http://dathompson.blogspot.com/2008/07/restful-rails-passing-url-parameters.html>
Regards,
Marco Antonio
On Sat, Jul 17, 2010 at 2:14 PM, Bill Walton wrote:
> Hi Marco,
>
> On Sat, Jul 17, 2010 at 5:29 AM, Marco Antonio Filho
> wrote:
> > Hi Guys,
> >
is a
quite simple question, but I did research, but I think I didn't find the
right keywords to look for it.
Thanks for any inputs in advance.
Marco Antonio
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this gr
the thing is that there are a lot of kinds of reports and for each one there
is a kind of calculation. So I am trying to bypass this by parsing the HTML.
Thanks in advance.
Regards,
Marco Antonio
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails:
Hi,
I use these two sites for starting to study Rails and the book Agile
Development with Ruby And Rails.
http://www.railstutorial.org/
<http://www.railstutorial.org/>http://guides.rubyonrails.org/
<http://guides.rubyonrails.org/>Regards,
--
Marco Antonio
On Mon, Apr 19, 201
e
def name= name
@name = name + 'bla bla'
end
end
In Ruby I could do this, but this doesn't affect my object at all...
How can I do that?
Thanks in advance
--
Marco Antonio
--
You received this message because you are subscribed to the Google Groups "Ruby
on Ra
I would like to persist the user authentication between user sessions
(basically a "remind me" by default).
Sessions expire while cookies persist: why should I use a session for
authentication and then another different cookie for the "remind me"?
Can't I simply store a cookie whith a token and
@Fred
You're probably right. I’d like to point out that I changed all
environments to use the same smtp settings.
Thanks,
Marco
On Jul 4, 2:00 am, Marco Oliveira wrote:
> Issue is now resolved.
>
> This was done by removing the authentication, user_name, and password
> from
can’t begin to describe how frustrating action mailer has been.
Your telnet guidance and debugging method was indispensable to my
solution. Thank you!
It’s great to see people taking time from their daily life to help
fellow programmers. I’ll certainly do my best to contribute to this
community.
Sincere
I entered "HELO test.localhost:
3000", (I'm unsure if that's accurate, but still returned a 250)
Thanks for the comments guys,
Marco
On Jul 3, 8:34 pm, "Älphä Blüë"
wrote:
> > MAIL FROM:
>
> > => 250 2.1.0 Ok
>
> Between these two lines you need t
Hey Simon,
Yes, I am able to telnet into shawmail.wp.shawcable.ca 25.
Thanks for the reply,
Marco
On Jul 3, 7:13 pm, "Simon Macneall" wrote:
> sounds like the mail server isn't set up to accept connections from your
> server. Check that you can telnet to port 25 of
Over the past few days I've been going crazy trying to get email
delivery to work using RoR. From what I've read, settings look right,
I have no clue what is wrong. I'm hoping the community can give me
some insight on how to get this thing running.
All testing is done in development environment o
Doesn't anyone know how to do or if exist a fork which is able to do
this? It's a pity to don't use this helpful plugin and was perfect for
my purpose
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subsc
lumn :state_id
aasm_initial_state :"1" #To print
aasm_state :"1" #To print
aasm_state :"2" #Waiting
aasm_state :"3" #Selected
when i attempt to use transaction to change state i get this error:
You have a nil object when you didn't expect it!
The err
I partially solved using this plugin to get correct mime from extension:
http://code.google.com/p/mimetype-fu/
And in my model i added:
validate :validate_content_type
protected
def validate_content_type
errors.add(:file, "Format #{File.mime_type?(file.path)} is
invalid!") unless Fi
When i upload a pdf, validations doesn't work, only images validation
works. Avoiding check, file was loaded but with this content type:
file_content_type: "binary/octet-stream"
How can i solve? I'd like to have "application/pdf"
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~
Hallo,
I often use the saved passwords of my Firefox browser to see and
sometimes erase the passwords...only everytime I must go to Tools -
Options - Safety - saved password.
I was arguing if there is a way to insert a link in the toolbar to
simplify and speed up this task.
Thank you and hallo t
well, my app should be used from everywhere in the world.. not easily
accomplished through desktop applications (establish secure connections
to remote database), and moreover it'll be updated frequently, and I
certainly don't want to make people keep installing new versions...
any other comme
Hi, I'm a student with no real experience in developing serious
enterprise apps..
still now I have the possibility to try..
Here's my question:
I'm building a rails app that connects to a database, and is essentially
a front end to it, to manage projects and related documents. The
interface in xht
Oops.. I've resolved. The problem wasn't related to ruby path: when I
set environment.rb I forgot to specify the :lib parameter for some
gems.
Sorry
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subsc
Freddy Andersen wrote:
> Gems might be installed in more than one area.
I agree..
> Look in ~/.gems and make sure that you use sudo when installing gems.
Unfortunately I haven't got any ~/.gems directory
> Do you now have multiple ruby directories on your mac? if so you most
> likely have mult
Hi,
since I updated ruby using Mac Ports (on Leopard) I have got several
problems and I also had to reinstall gems. Now when I run Mongrel I keep
getting the error "Missing these required gems" followed by the list of
gems that I required in environment.rb but that gems seems to be
correctly inst
On 2 Jan, 00:37, Craig White wrote:
> On Thu, 2009-01-01 at 15:23 -0800, Marco Rodrigues wrote:
> > I would like to request a feature.. like:http://rubyonrails.org/function
> > and it
> > will search insidehttp://api.rubyonrails.orgfor the function and
> > show i
I would like to request a feature.. like: http://rubyonrails.org/function
and it
will search inside http://api.rubyonrails.org for the function and
show it.
Like PHP has.. http://php.net/basename
Example: http://rubyonrails.org/truncate and it will points to
http://api.rubyonrails.org/classes/Ac
thanks for that answer, but that was not what I was looking for.
I would like to dump my database from within my application (a link in
the app "Save Database To File"), not from the commandline.
Or is there a possibility to invoke a commandline?
marco
On 29 Aug., 08:20, Roger Pa
70 matches
Mail list logo