'John Merlino' via Ruby on Rails: Talk wrote in post #1155178:
I thought the ? matches zero or one occurrence of a pattern. However in
this example:
def show_regexp(string, pattern)
match = pattern.match(string)
if match
#{match.pre_match}-#{match[0]}-#{match.post_match}
else
Hey there,
Im going to as what im sure is a newbie question but from all my googling and
trial an error and i cannot seem to figure out how to do this.
Basically im in the process of trying to learn RoR, to do this im building a
test app that interacts with the Shopify API ( We use shopify
On 14 August 2014 21:58, Ben Henry b...@squashedpixel.co.uk wrote:
Hey there,
Im going to as what im sure is a newbie question but from all my googling and
trial an error and i cannot seem to figure out how to do this.
Basically im in the process of trying to learn RoR, to do this im
Thank you, I used this params, Ithoughts Ican do it with some options in
the gem
regards
On Friday, August 8, 2014 11:21:24 PM UTC+2, Walter Lee Davis wrote:
You could use the params[:page] attribute to switch this off and on, I
guess. If params[:page] is missing or equal to 1, then do
Hi,
I am using openlayers gem to show a openstreetmap as div in a a rails app
how can I make this div as a link to an other page in the rails app using
link_to tag
regards
--
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To unsubscribe
On 15 August 2014 01:53, Friederike Geiken li...@ruby-forum.com wrote:
I think this is a rather general question. I would like to implement the
following function in my website: Users can create different listings.
Other user can click on the listing and click a contact button that
links to a
Hi,
In the code you posted there is no attr_accessible :item is there?
Jan
Op donderdag 14 augustus 2014 23:31:12 UTC+2 schreef Fernando Aureliano:
Hi!
I'm using the version of that gem
https://github.com/crowdint/acts_as_shopping_cart for rails 3
I did evething with ythe convetions
Hi,
Resque works with Redis. Why not use Redis to keep track of executed jobs?
Jan
Op donderdag 14 augustus 2014 12:11:02 UTC+2 schreef bette...@gmail.com:
Hi Friends,
I have a scenario where I am calling a resque jobs within the resque job
which is already initiated.
The below
You could use the params.
http://trophysky.com/category/ncaa-football-trophy/
--
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,
Hi!
I tried, but the error persist.
Em quinta-feira, 14 de agosto de 2014 18h31min12s UTC-3, Fernando Aureliano
escreveu:
Hi!
I'm using the version of that gem
https://github.com/crowdint/acts_as_shopping_cart for rails 3
I did evething with ythe convetions names. But I'm getting the
On 15 August 2014 10:48, Fernando Aureliano m...@fernandoaureliano.com wrote:
Hi!
I tried, but the error persist.
Which version of Rails are you using? If it is 4 then you need to
use strong parameters
http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html
Colin
Em
Not sure if this is what you are looking for, and you might have to go back
and add other controllers etc from previous sections. But Michael Hartl's
tutorial has the follow feature in his sample_app...
http://www.railstutorial.org/book/following_users
On Thursday, August 14, 2014 8:53:33 PM
Hey guys, another newb here :) Anyway, I'm building another social
network, and I would like to be able to have users type in some text in the
Comment area, and when they put a new line space to make a new
paragraph, have it show up when its posted to the site.
1. Is there a way for them to
On Fri, Aug 15, 2014 at 10:05 AM, Colin Stodd cbst...@gmail.com wrote:
I would like to be able to have users type in some text in the Comment
area, and when they put a new line space to make a new paragraph, have it
show up when its posted to the site.
Check out simple_format. It preserves
Colin Mr. wrote in post #1155224:
Not sure if this is what you are looking for, and you might have to go
back
and add other controllers etc from previous sections. But Michael
Hartl's
tutorial has the follow feature in his sample_app...
http://www.railstutorial.org/book/following_users
Not exactly. I don't want to send an email to a user. A user should be
able to fill out a contact form, which than goes to the listing user.
So I'm looking for a function that lets one user contact another user.
So the user goes to a users profile, looks at one of his
listing/postings. Now he
On Thu, Aug 14, 2014 at 5:52 PM, Friederike Geiken li...@ruby-forum.com wrote:
Here, users can send the listing user a message.
Or does anyone know how to program this?
Think about what minimally addresses your scenario, e.g.
user has one message queue has many messages
Doesn't seem too
Hassan Schroeder wrote in post #1155231:
On Thu, Aug 14, 2014 at 5:52 PM, Friederike Geiken
li...@ruby-forum.com wrote:
Here, users can send the listing user a message.
Or does anyone know how to program this?
Think about what minimally addresses your scenario, e.g.
user has one
On Fri, Aug 15, 2014 at 7:38 AM, Friederike Geiken li...@ruby-forum.com wrote:
user has one message queue has many messages
Hm... I'm sorry. I'm very new to ROR so there are many things still
tricky for me.
Could you explain a little further?
has_one and has_many are very basic Rails
The has one has many is clear.
But thanks I will definitely read over it again :)
I think what I'm struggling with more is how to actually deliver a
message from user to user.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google
On Fri, Aug 15, 2014 at 7:49 AM, Friederike Geiken li...@ruby-forum.com wrote:
I think what I'm struggling with more is how to actually deliver a
message from user to user.
You add the message to the user's message_queue.
That's what delivered means. Not complex.
--
Hassan Schroeder
%= link_to('my_link') do %
divOPEN STREETMAP CONTENT/div% end %
You can put a div inside of the a generated by link_to and this will work
for you but putting block elements inside of a is not really good
practice. Instead you could try span instead of div
On Friday, August 15, 2014
I do not know what the protocol is if you have a rails question with
several files. Do you post all here? I have asked a question on stack
overflow buy have not found an answer yet:
http://stackoverflow.com/questions/25291821/rails-4-with-nested-attributes-and-nested-form
I was hoping to get
i have 2 models
class User ActiveRecord::Base
has_many :notes, :dependent = :destroy
accepts_nested_attributes_for :notes
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end
class Note ActiveRecord::Base
belongs_to :user
I am new to Rails. I have done the Rails Tutorial by Hartl
http://www.railstutorial.org/ I have done the Ruby tutorial at
Code Academy http://www.codecademy.com/tracks/ruby , completed the the
Engineering
Berkeley Software as Service
I must be honest- I am running into this problem myself learning rails. I
thought that when I create something the user_id should be generated
automatically in the created model. While testing I figured I would come
back to it. In the meantime I set user_id in my entry table manually in
the
My friend Darrell Silver runs this company, their approach is that you pay them
by the month a flat fee, and in exchange you get 1-on-1 tutoring and mentoring
by an expert.
Personally, especially when learning languages (Ruby, Javascript, etc) I find
Google to be very bad at helping me learn
On Aug 15, 2014, at 4:20 PM, Sean Kelley kelleyf...@gmail.com wrote:
I must be honest- I am running into this problem myself learning rails. I
thought that when I create something the user_id should be generated
automatically in the created model. While testing I figured I would come
On Aug 15, 2014, at 2:57 PM, Turcu Marius li...@ruby-forum.com wrote:
i have 2 models
class User ActiveRecord::Base
has_many :notes, :dependent = :destroy
accepts_nested_attributes_for :notes
devise :database_authenticatable, :registerable,
:recoverable, :rememberable,
On Aug 15, 2014, at 4:26 PM, Jason Fleetwood-Boldt t...@datatravels.com wrote:
My friend Darrell Silver runs this company, their approach is that you pay
them by the month a flat fee, and in exchange you get 1-on-1 tutoring and
mentoring by an expert.
I'm so sorry I meant to paste in
On 15 August 2014 19:57, Turcu Marius li...@ruby-forum.com wrote:
i have 2 models
class User ActiveRecord::Base
has_many :notes, :dependent = :destroy
accepts_nested_attributes_for :notes
devise :database_authenticatable, :registerable,
:recoverable, :rememberable,
If you update this:
@note = Note.new(lesson_params)
to:
@note = current_user.notes.new(lesson_params)
that should work the way you want.
~Mahcsig
On Fri, Aug 15, 2014 at 11:57 AM, Turcu Marius li...@ruby-forum.com wrote:
i have 2 models
class User ActiveRecord::Base
has_many :notes,
32 matches
Mail list logo